<分区>
<分区>
<span>Teaching kids to reach their creative and intellectual potentials through Computer Science.</span>
上面是我的 HTML,下面是我的 CSS:
span { text-decoration: underline; color: red }
如果 text-decoration
被认为是前景的一部分,那么 text-decoration-color
属性如何改变 text-decoration
颜色而不改变字体的 color
?
最佳答案
在 Chrome 上使用 -webkit-text-decoration-color 来改变它。但是,请注意,必须启用实验性 Web 平台功能才能使其工作。所以目前,Chrome 只是简单地不支持这个 css 属性。
关于html - 为什么文本装饰被认为是前景的一部分,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40369610/