springboot怎么把数据传给前端:springboot 如何引入前端 bootstrap?
这种问题网上一搜一大堆,你可以具体找一篇文章试试,遇到问题可以针对相关问题去提问。springboot通过jar包方式引入bootstrap_个人文章 - SegmentFault 思否 这不是查查就
顺晟科技
2022-10-18 12:53:57
63
根据特性,层次结构ID样式应该在标记样式之上,但在下面的代码片段中,情况正好相反!
我希望桌子是蓝色的,但它是红色的,谁能解释一下?
#body table {
background: red;
}
#table {
background: blue;
}
<代码><;HTML(>;)<;头部>;<;/标题>;<;body ID=“ body ”>;<;表格ID=“表格”>;<;TR>;<;Th style=position:sticky;顶部:0;Z指数:1;背景:灰色;>;某物<;/th>;<;/tr>;<;tr>;<;TD>;HA<;/TD>;<;/TR>;<;tr>;<;TD>;HA<;/TD>;<;/TR>;<;tr>;<;TD>;HA<;/TD>;<;/TR>;<;tr>;<;TD>;HA<;/TD>;<;/TR>;<;/表格>;<;/正文>;<;/HTML>;
顺晟科技:
CSS SpecifityCSS Specifity在一节中对其进行了解释:如何计算特异性?
对于<html>
<head>
</head>
<body id="body">
<table id="table">
<tr>
<th style="position: sticky;
top: 0;
z-index: 1;
background: gray;">something</th>
</tr>
<tr><td>ha</td></tr>
<tr><td>ha</td></tr>
<tr><td>ha</td></tr>
<tr><td>ha</td></tr>
</table>
</body>
</html>
,您有以下特殊性计算:100+1=101(ID+元素)
对于#body table
,您具有以下特定计算:100=100(ID)
因此<html>
<head>
</head>
<body id="body">
<table id="table">
<tr>
<th style="position: sticky;
top: 0;
z-index: 1;
background: gray;">something</th>
</tr>
<tr><td>ha</td></tr>
<tr><td>ha</td></tr>
<tr><td>ha</td></tr>
<tr><td>ha</td></tr>
</table>
</body>
</html>
具有较高的特异性(101>;100).例如,您可以从body#body table
中删除#,而不是指定1+1=2并且低于#body table
(100)。
05
2022-12
02
2022-12
02
2022-12
29
2022-11
29
2022-11
24
2022-11