gpt4 book ai didi

html - 如何在 Internet Explorer 中删除 UL/LI 元素的右边框?

转载 作者:行者123 更新时间:2023-11-28 18:47:17 26 4
gpt4 key购买 nike

我对所有版本的 Internet Explorer 都有问题。我有一个 ul 和带有右边框的 li 元素。你可以在 this page 的底部看到它的样子。 (“别处”)。

这个问题不是这个页面特有的,而是所有类似的 HTML 设置。

Here's what it looks like in other browsers

Here's what it looks like in IE

我如何告诉 IE 删除右边框?

最佳答案

您正在使用 :last-child 选择器在最后一个列表项上设置无边框。不幸的是,除了 9(和 10 RC)之外的所有 IE 版本都不支持这种风格。

http://www.quirksmode.org/css/contents.html#t35

为什么不只使用第一个子选择器(禁用左边框)并在所有其他列表项上设置左边框?在我看来,这似乎是一条更安全的路线。

关于html - 如何在 Internet Explorer 中删除 UL/LI 元素的右边框?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10231069/

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