gpt4 book ai didi

html - 文字装饰 : line-through not working on IE?

转载 作者:太空宇宙 更新时间:2023-11-03 19:34:26 25 4
gpt4 key购买 nike

我有这个

.strike{
text-decoration: line-through;
}

每次我的disable()被调用,它将禁用 <option>来 self 的 <select>并添加此类,但它在 IE 上不起作用。是的,我的 <option> s 被禁用就好了,但是文本装饰在 IE 上失败了。解决方法是什么?谢谢。

编辑:我刚刚发现 text-decoration: line-through 在 Chrome 上也不起作用。

最佳答案

select 元素的样式选项很少。这是一个 support grid显示您可用的选项(和限制)。

您可能最好以其他方式(example)模拟“选择”,而不是尝试使用 CSS 设置选择表单控件的样式。

关于html - 文字装饰 : line-through not working on IE?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12847993/

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