【发布时间】:2011-01-10 22:28:48
【问题描述】:
我有一个 asp.net 站点,它在我的计算机上以 IE8 和 firefox 的方式显示我想要的方式。在我同事的计算机上,页面内容被推到左侧菜单下方。
我们的 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;
}
【问题讨论】:
-
您所处的情况称为“跨浏览器兼容性”。Google 或使用 search@Stackoverflow。
-
@Aseem Gautam 不,如果你读了,他说,他们都使用相同版本的 IE,因此不能跨浏览器。
标签: asp.net css internet-explorer