我有一个asp.net网站,它显示了我希望在我的电脑上使用IE8和Firefox的方式。在我的同事电脑上,页面内容被推到左侧菜单下方。Asp.net网站在同事电脑上的显示方式不同
我们都有完全相同的IE8版本。
我使用div和css进行定位和主页面。
body
{
background-position: center center;
font-family: Verdana;
font-size: medium;
background-color: #000000;
}
* {
padding: 0;
margin: 0;
}
#dateField{}
#head
{
color: #00FF00;
}
#topContent
{
background-position: url(Images/bg2.gif) repeat-x;
text-align: center;
background: url(Images/bg2.gif) repeat-x;
color: #FFFFFF;
font-size: x-large;
text-decoration: none;
font-weight: bold;
height: 87px;
vertical-align: middle;
line-height: 87px;
}
#topContent span {vertical-align:middle}
#leftContent
{
background-position: #0094D6 url(Images/contentbg.gif) repeat-x;
width: 170px; /*background: #0094D6 url(Images/contentbg.gif) repeat-x;*/
padding: 10px;
font-size: 90%;
text-align: left;
position: static;
margin-top: 10px;
margin-bottom: 10px;
left: 0px;
float: left;
height: 574px;
}
#SideTableFiller
{
height: 262px;
background-color: #000000;
}
#mainContent
{
text-align: left;
margin-left: 190px;
padding: 2px;
color: #FFFFFF;
}
#footerContent
{
background: url(Images/footer.jpg) repeat-x;
height: 100px;
clear: left;
}
您所处的情况称为“CROSS BROWSER COMPATIBILITY”.Google it或使用search @ Stackoverflow。 – 2010-01-29 17:01:30
@Aseem Gautam不,如果你阅读它,他说,他们都使用相同的IE版本,因此使它不会跨浏览器。 – Gabe 2010-01-29 17:04:02