Firefox 中的标题大小 h1 h2 h3
I have a problem with headings in Firefox.
Website is at http://toto-bongo.heroku.com/blog
What can I do to fix this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您只需在 CSS 中定义元素的大小,您的问题就会得到解决。如果您担心所有元素的大小,最好的选择是使用重置样式表,如果您担心跨浏览器兼容性,这将真正帮助您。使用重置样式表强制您为您使用的每个标签定义特定属性,从而消除浏览器之间的任何歧义。
Your problem will be fixed if you simply define the sizes of the elements in your CSS. If you're worried about the size of all of your elements, your best bet is to use a reset stylesheet, which will really help you if you're worried about cross-browser compatibility. Using a reset stylesheet forces you to define specific atributes to each tag that you use, thus eliminating any ambiguity between browsers.
根据我的经验,最可能的原因是打开和关闭标签不匹配,浏览器对它们的解释不同。当然,除非您为这些标签指定样式。
由于我们无法查看链接,因此您似乎不太可能在这里得到明确的答案。但如果 FireFox 真的显示开箱即用的
标签,我会感到惊讶。
In my experience, the most likely cause of this is mismatched open and close tags, which the browsers interpret differently. Unless, of course, you are specifying styles for these tags.
Since there's no link we can look at, it seems unlikely you'll get a definitive answer here. But I would be surprised if FireFox really shows
<H1>
tags that small out of the box.这可能是由
userContent.css自定义样式 引起的代码> 文件。此文件位于 Firefox 配置文件文件夹中的
chrome目录。
This could be caused by custom styles in your
userContent.css
file. This file is in your Firefox profile folder, in thechrome
directory.