Why does my css not appear correctly in IE9?

别来无恙 提交于 2019-12-02 00:45:46

IE9 is a pretty standard compliant browser. When I've found rendering difference it usually means that I've hacked my way into some pothole. Try this solution:

#main {
  position: relative;
}

#welcome-image { 
    margin-top: -26px;
    margin-bottom: -8px;
    background-image: url("images/welcome-image6.jpg");
    height: 500px;
}

#welcome-text {
    padding: 15px;
    top: 0;
    right: 0;
    position: absolute;  
    width: 290px;
}

Add doctype in your page :-) you must have delete the doctype of your page.

The IP address referenced in the code: 121.6.3.287 does not resolve, is that the correct IP? This could be where your issue lies in the fact that the location doesn't exist or atleast is not accessible.

specify width for the div id="title" and adjust using float:left as given above

Robertwm

All div adjust as float:left then you will get actual result after all if you will not get a proper design so complete your reset your CSS.

Sowmya

Give float:right to the right side div and float:left to left div

If the site is live please provide the url so that it would be easy to check.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!