当前位置:网站首页>: last child does not take effect
: last child does not take effect
2022-07-02 21:48:00 【Small white eye】
structure :
<div class="titleContent">
<div> Navigation click bar </div>
<p>{
{ AthenaData.titleLabel }}</p>
<h1> Card power awakening Wait for you to fight </h1>
<p> Flop tickets , Win a good gift !</p>
<div class="ticketInfo">
My ticket
<span> Preliminaries :1</span>
<span> The rematch :0</span>
<span> finals :0</span>
<button> Start fighting immediately </button>
</div>
</div>
Want to give <p> Flop tickets , Win a good gift !</p> The words are bold :
style :
p:last-child{
font-weight: 700;
}
It doesn't work .
terms of settlement :
p:last-of-type{
font-weight: 700;
}
summary :
p:first-of-type : First appeared in the same level structure P Elements ( There is no need to be first in the structure )
p:last-of-type : The last in the peer structure P Elements ( There is no need to be the last but one in the structure )
p:first-child : The first under the parent element P Elements ( Must be first in the structure )
p:last-child : Parent element (body With the exception of ) The last one P Elements ( Must be the last but one in the structure )
边栏推荐
- 【剑指 Offer】56 - I. 数组中数字出现的次数
- Cloud computing technology [2]
- beginning
- [shutter] shutter layout component (Introduction to layout component | row component | column component | sizedbox component | clipoval component)
- 读博士吧,研究奶牛的那种!鲁汶大学 Livestock Technology 组博士招生,牛奶质量监测...
- Image segmentation using pixellib
- Redis distributed lock failure, I can't help but want to burst
- Research Report on crude oil tanker industry - market status analysis and development prospect forecast
- Accounting regulations and professional ethics [19]
- Detailed explanation of OSI seven layer model
猜你喜欢
[Yu Yue education] reference materials of analog electronic technology of Nanjing Institute of information technology
How to test the process of restoring backup files?
图像基础概念与YUV/RGB深入理解
[shutter] statefulwidget component (image component | textfield component)
Introduction to the principle of geographical detector
关于测试用例
Gee: (II) resampling the image
MySQL learning record (7)
Introduction to victoriametrics
Five message formats of OSPF
随机推荐
GEE:(二)对影像进行重采样
Golang embeds variables in strings
SQL必需掌握的100个重要知识点:使用游标
[zero foundation I] Navicat download link
How to test the process of restoring backup files?
Accounting regulations and professional ethics [16]
[Jianzhi offer] 56 - ii Number of occurrences of numbers in the array II
Capacity expansion mechanism of ArrayList
Welfare, let me introduce you to someone
2019 Nanchang (relive the classic)
发现你看不到的物体!南开&武大&ETH提出用于伪装目标检测SINet,代码已开源!...
[shutter] shutter layout component (Introduction to layout component | row component | column component | sizedbox component | clipoval component)
The web version of xshell supports FTP connection and SFTP connection
Micro SD Card Industry Research Report - market status analysis and development prospect forecast
China's crude oil heater market trend report, technological innovation and market forecast
MySQL learning record (1)
[sword finger offer] 56 - I. the number of numbers in the array
Construction and maintenance of business website [3]
Construction and maintenance of business websites [8]
【剑指 Offer 】56 - II. 数组中数字出现的次数 II