browser in quirks mode [closed]
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this questionMy browser always run in quirks mode - is it a problem?
I can't even validate my css. My page is looking good .. is there an开发者_StackOverflow中文版y problem?
Thanks a tonne in advance :)
Make sure you set a valid doctype in your header. ex:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
if you do not have that you will always be in quirks mode.
Standards are meant as a contract between browser vendors and the web designers. You are violating this contract. While this may work now, you are not guaranteed that it will work tomorrow.
精彩评论