gpt4 book ai didi

一个 :link a:visited a:hover a:active, 的 CSS 相同样式真的要全部写出 4 次

转载 作者:技术小花猫 更新时间:2023-10-29 10:31:22 25 4
gpt4 key购买 nike

呵呵,

使用 CSS 时。如果 a:link a:visited a:hover a:active 的 CSS 样式相同,那么真的需要多次写出来。使用自定义链接。

.DT_compare a:link {
font-family:"Lucida Grande", Arial, sans-serif;
font-size:11px;
line-height:14px;
font-weight:normal;
font-style:normal;
color:#EEE;
text-align:center;
}

有什么捷径吗?

很棒

最佳答案

我不认为你可以做任何短于:

.DT_compare a:link,
.DT_compare a:visited,
.DT_compare a:hover,
.DT_compare a:active, {
font-family:"Lucida Grande", Arial, sans-serif;font-size:11px;line-height:14px;font-weight:normal;font-style:normal;color:#EEE;text-align:center; }

关于一个 :link a:visited a:hover a:active, 的 CSS 相同样式真的要全部写出 4 次,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5567948/

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