The "html.css" is very mysterious to me, it always suddenly appear and suddenly disappear, when it appears, it always destroy my page style and keep sticky there until God knows when it disappears
Is there a way to disable开发者_如何学编程 it ? How?
Add: i found the problem appears not only in my system but also in my guest os, so i guess i have to found the cause and fix it as it may also appears in site visitors computer
html.css is default stylesheet of firefox. you can find more info about it here and here
and when you asked about disabling it , did you mean to over-ride the default behaviour ?
if yes, you can use reset the default style sheet,
there are several ways
- Eric Meyer's reset
- YUI reset
- or create your own based on project requirements
I'm not trying to defend firefox's way of implementing this stuff, but what I've noticed is that html.css appears when something is wrong with the markup.
Recently I was figuring out whether a <form>
element can be inside of a <table>
if given a display:table-row
(such code turned out to be invalid according to w3c validator).
While exploring the page using firebug I've mentioned that html.css appeared.
When get the <form>
out of the <table>
(so valid markup was back again) I could see no html.css anymore.
精彩评论