gpt4 book ai didi

css - 为什么这个导航在 Firefox 上坏了?

转载 作者:太空宇宙 更新时间:2023-11-04 16:28:16 25 4
gpt4 key购买 nike

你们能指出我在这个网站的导航上做错了什么吗?它在 webkit 上运行良好,但在 firefox 上运行不正常!

http://datatables.dyndns-web.com/ enter image description here

与预期相比 enter image description here

最佳答案

在当前版本的 Presto、Trident 和 Gecko 中,NAV 标签默认不是 block 元素。只有 WebKit 已经包含了 HTML5 元素的默认样式表。您应该使用 basic-/reset-CSS 来格式化所有 HTML5 元素。

参见:http://html5doctor.com/html-5-reset-stylesheet/

顺便说一句,如果有人要图片,您应该上传一张所需结果的图片,而不是一张损坏的 View ……

关于css - 为什么这个导航在 Firefox 上坏了?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5140359/

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