语法
:last-of-type
实例
为选定 元素中的最后一个<em>元素,您可以使用以下方法:
pem:last-of-type{ color:lime;}
<em>I'mnotlime
span:nth-child(2n+1),<em>without</em>an<em>insidethechildelements.Children1,3,5
<length>在em中指定值的单位时,ex将根据所讨论元素的父元素上的字体大小来定义大小。例如,0.5em是当前元素父级的一半字体大小。
font-size:30px;}h2{font-size:20px;}p{font-size:15px;}
html
15pixel30pixel
20pixel
结果是表示应用函数的名称F/A,如果Node表示函数应用程序“<em>F</em>(<em>X_1</em>,...,<em>X_A</em>)”。
鉴于风格规则:
p{color:green}
以及标记:
Thisparagraphhas<em>emphasizedtext</em>init.
<em>Thistextisintheinitialcolor(e.g.,black).</em>Thisisredagain.

扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2026 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059
粤公网安备44030502008569号
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号
