编码导致IE6页面空白
分类:前端开发 2010/9/5 PM
html里编码的申明应该在标题出现之前。否则有可能导致IE6下页面空白。正确的顺序应该是:
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title> new document </title> <meta name="keywords" content="" /> <meta name="description" content="" /> </head> <body> </body> </html>
最近发现平台上很多页面的是先有title再申明编码的,哎……不知道原来是怎么来的,又是体力活。
发表评论: