扫码关注官方订阅号
我需要给 p[class^="xxx"] 的最后一个元素定义样式,可是写 p[class^="xxx"]:last-of-type 不起作用,请问要怎么写呢?
p[class^="xxx"]
p[class^="xxx"]:last-of-type
光阴似箭催人老,日月如移越少年。
你很可能需要了解一下last-of-type和last-child的区别
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
你很可能需要了解一下last-of-type和last-child的区别