为什么 FIrefox 无法识别?
我只是想确认 Firefox 是否无法解释 标签?我创建了一个网站并在 Chrome 和 Safari 上进行了测试。一切都很好,直到我在 Firefox 上测试它,结果很糟糕。我花了将近 2 天的时间才发现 Firefox 无法处理
标签。我只是想确认一下,因为我不确定。
I would just like to confirm if Firefox can't interpret <section>
tag? I created a website and tested it on Chrome and Safari. Everything was fine until I tested it on firefox and it was horrible. It took me almost 2 days just to figure out that Firefox cant handle <section>
tag. I would just like to confirm because I am not sure about it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
添加
article { display: block; }
添加到您的样式表中。 FF 可能将其视为内联元素,因为它未得到完全支持。我使用 HTML5 构建了一个测试系统,只需进行一些调整,它就可以在所有浏览器上正常运行。
编辑
这是我编写的一个脚本,用于测试一些网络抓取:http://randomcoding.com /steam/ 我使用 HTML5 作为标记来看看有什么大惊小怪的。
正如您从 样式表 中看到的,我已经制作了一些元素块项目
此方法有效对我来说,在我检查过的大多数浏览器上(Chrome、Opera 10、FF3-4、IE8-9)。
但是,如果您刚开始,我建议您看一下 HTML5 Boilerplate :http://html5boilerplate.com/
它提供了使用 HTML5 标记网站的最佳实践。一个很好的起点。
Adding
article { display: block; }
to your style sheet. FF is probably treating it as an inline element because it's not fully supported.I've used HTML5 to build a test system and it's worked fine on all browsers with a few tweaks.
EDIT
This is a script I wrote to test out some web scraping : http://randomcoding.com/steam/ I used HTML5 as the markup to see what all the fuss was about.
As you can see from the stylesheet, I've made some elements block items
This method works for me on most browsers I checked (Chrome, Opera 10, FF3-4, IE8-9).
However, if you're starting out, I recommend you have a look at HTML5 Boilerplate : http://html5boilerplate.com/
It's got the best practices for when using HTML5 to markup your site. A good place to start.
阅读 HTML5 标签根本不起作用在 Firefox 3.6.3 中
Take a read at HTML5 tags not working at all in firefox 3.6.3
Firefox 对
标签没有问题,但 Internet Explorer 有。
Firefox has no problem with the
<section>
tag, but Internet Explorer has.