当前位置:网站首页>:last-child 不生效解决
:last-child 不生效解决
2022-07-02 21:32:00 【小白目】
结构:
<div class="titleContent">
<div>导航点击栏</div>
<p>{
{ AthenaData.titleLabel }}</p>
<h1>牌力觉醒 等你来斗</h1>
<p>翻牌得门票,参赛赢好礼!</p>
<div class="ticketInfo">
我的入场券
<span>初赛:1</span>
<span>复赛:0</span>
<span>决赛:0</span>
<button>立即开斗</button>
</div>
</div>想给 <p>翻牌得门票,参赛赢好礼!</p> 文字加粗:
样式:
p:last-child{
font-weight: 700;
}
发现不生效。
解决办法:
p:last-of-type{
font-weight: 700;
}总结:
p:first-of-type :同级结构内首次出现的P元素(无须在结构第一位)
p:last-of-type :同级结构内最后出现的P元素(无须在结构倒数第一位)
p:first-child :父元素下的第一个P元素(必须在结构第一位)
p:last-child :父元素(body除外)下的最后一个P元素(必须在结构倒数第一位)
边栏推荐
- Chargement de l'image pyqt après décodage et codage de l'image
- Internet Explorer ignores cookies on some domains (cannot read or set cookies)
- MySQL learning record (8)
- Three chess games
- China plastic bottle market trend report, technological innovation and market forecast
- Image segmentation using pixellib
- beginning
- Analysis of enterprise financial statements [1]
- How does esrally perform simple custom performance tests?
- 【剑指 Offer】57. 和为s的两个数字
猜你喜欢

pip安裝whl文件報錯:ERROR: ... is not a supported wheel on this platform

GEE:(二)对影像进行重采样
![[shutter] shutter layout component (physicalmodel component)](/img/6a/f8161fb7c8e9012456622f1920da64.gif)
[shutter] shutter layout component (physicalmodel component)

MySQL learning record (8)

Error in PIP installation WHL file: error: is not a supported wheel on this platform
![[shutter] shutter page Jump (route | navigator | page close)](/img/af/3fb2ca18bcec23a5c0c6897570fb53.gif)
[shutter] shutter page Jump (route | navigator | page close)

Unexpectedly, there are such sand sculpture code comments! I laughed

It is said that this year gold three silver four has become gold one silver two..
![[dynamic planning] p1220: interval DP: turn off the street lights](/img/b6/405e29ca88fac40caee669a3b7893f.jpg)
[dynamic planning] p1220: interval DP: turn off the street lights

CVPR论文解读 | 弱监督的高保真服饰模特生成
随机推荐
MySQL learning record (5)
[shutter] shutter layout component (Introduction to layout component | row component | column component | sizedbox component | clipoval component)
Research Report on minimally invasive medical robot industry - market status analysis and development prospect prediction
[shutter] statefulwidget component (image component | textfield component)
Welfare, let me introduce you to someone
China's noise meter market trend report, technical dynamic innovation and market forecast
Research Report on market supply and demand and strategy of Chinese garden equipment industry
Golang embeds variables in strings
One week dynamics of dragon lizard community | 2.07-2.13
Research Report on market supply and demand and strategy of China's right-hand outward rotation entry door industry
Accounting regulations and professional ethics [16]
Construction and maintenance of business websites [8]
Go web programming practice (2) -- process control statement
Summary of the first week of summer vacation
Image segmentation using pixellib
Analysis of enterprise financial statements [3]
~90z axis translation
[C language] [sword finger offer article] - replace spaces
Accounting regulations and professional ethics [17]
Research Report on micro gripper industry - market status analysis and development prospect prediction