开发者

I have a web design error when I test my project under internet explorer [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 11 years ago.

I have a grails application. When I finish the web design of this project, I try to test it under more than one browser such that Opera, Firefox, and Google Chrome. It works fine on these browser, but when I try to load this project under Internet Explorer it return an empty page without and style or design.

Does s开发者_开发技巧omeone know what is the problem.


You are missing the doctype and IE is less permissive. Put this at the beginning of the html code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


The page is rendering in quirks mode - you can check this by opening the Developer Tools (F12) and checking the Document Mode at the end of the menu bar. Change this to IE8 Standards and the content is visible. Add a Doctype to your HTML.


Try a doctype above it

and replacing the head tag

Replace

<html> 

with:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜