为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

firefox defaut css

  • 3 个回答
  • 1 人有此问题
  • 2 次查看
  • 最后回复者为 Wayne

more options

I am trying to find out what the actual point sizes are for the H1-H6 headings, as well as the point sizes for the (now-obsolete) font sizes 1-7. I have found the heading information at this link, but it does not tell me what the sizes for font size 1-7 are. I started looking for the location of the default css for the browser in the hopes that it would answer this question. However, the answers on the net are anything but accurate and (I think) apply to some older versions of the browser. Is there a specific css file (or files) that contain the default css settings for FireFox, and if so, where is it/are they located?

I am in the process of converting some older web pages of mine from using font tags to using css instead. Without this information I cannot accurately modify the page as the layout changes as soon as I change a font tag to a css property.

I am trying to find out what the actual point sizes are for the H1-H6 headings, as well as the point sizes for the (now-obsolete) font sizes 1-7. I have found the heading information at this [http://zuga.net/articles/html-heading-elements/ link], but it does not tell me what the sizes for font size 1-7 are. I started looking for the location of the default css for the browser in the hopes that it would answer this question. However, the answers on the net are anything but accurate and (I think) apply to some older versions of the browser. Is there a specific css file (or files) that contain the default css settings for FireFox, and if so, where is it/are they located? I am in the process of converting some older web pages of mine from using font tags to using css instead. Without this information I cannot accurately modify the page as the layout changes as soon as I change a font tag to a css property.

由Wayne于修改

被采纳的解决方案

Thank you both for answering. The question had nothing to do with forms, however. It is about the actual size of the FONT size attributes as compared to the H1-H6 header tags. The second answer was more helpful, but still not what I was looking for. I actually did find an answer by searching the web. I found three sites that each had part of the data I was looking for, and I was able to build a table of the results. From that I was able to see that looking at it from the standpoint of 'em's is the way to determine this. I also found that Firefox's numbers are different from the old FONT size and H1-H6 when using CSS to set the size. It's not always much of a difference, but enough to make the page look different. I am using this table as my guide in converting all of my old pages to HTML5/CSS compliance. I would post it in this message, but it is a html document and I don't know how it would display. It also uses the FONT tag for setting the size of the text for comparison to the H1-H6 tags, so I don't know how well that would go over here.

定位到答案原位置 👍 0

所有回复 (3)

more options

The :default CSS pseudo-class selects form elements that are the default in a group of related elements.

What this selector matches is defined in HTML Standard §4.16.3 Pseudo-classes — it may match the <button>, <input type="checkbox">, <input type="radio">, and <option> elements:

A default option element is the first one with the selected attribute, or the first enabled option in DOM order. multiple <select>s can have more than one selected option, so all will match :default. <input type="checkbox"> and <input type="radio"> match if they have the checked attribute. <button> matches if it is a <form>’s default submission button: the first <button> in DOM order that belongs to the form. (This also applies to <input> types that submit forms, like image or submit.)

more options

hii wayne


you visit this site for default css settings for FireFox.

Examine and edit CSS - Firefox Developer Tools | MDN I hope it helps.

more options

选择的解决方案

Thank you both for answering. The question had nothing to do with forms, however. It is about the actual size of the FONT size attributes as compared to the H1-H6 header tags. The second answer was more helpful, but still not what I was looking for. I actually did find an answer by searching the web. I found three sites that each had part of the data I was looking for, and I was able to build a table of the results. From that I was able to see that looking at it from the standpoint of 'em's is the way to determine this. I also found that Firefox's numbers are different from the old FONT size and H1-H6 when using CSS to set the size. It's not always much of a difference, but enough to make the page look different. I am using this table as my guide in converting all of my old pages to HTML5/CSS compliance. I would post it in this message, but it is a html document and I don't know how it would display. It also uses the FONT tag for setting the size of the text for comparison to the H1-H6 tags, so I don't know how well that would go over here.