gpt4 book ai didi

CSS:怎么说 .class:last-of-type [类,而不是元素!]

转载 作者:数据小太阳 更新时间:2023-10-29 09:07:50 25 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
How do I select the “last child” with a specific class name in CSS?

正如标题所说,我想将 css 规则添加到具有特定类的特定类型的最后一个元素。以下代码完美运行:

div:last-of-type { margin-right:0; }

但我想要类似的东西

div.class:last-of-type { margin-right:0; }

如何做到这一点?

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com