网页在ie7,ie8上运行速度都比较快,到ie6上运行却死机。
一般什么原因或css bug会导致?
发你的css上来看下
9494让我们一睹让ie6 down掉的css
代码如下:
html
{
border: 0;
margin: 0;
padding: 0;
height:100%;
}
body
{
border: 0;
margin: 0;
padding: 0;
font-family: 宋体;
font-size: 9pt;height:100%;
}
TABLE
{
line-height: 18px;
}
div
{
line-height: 18px;
}
html form
{
height: 100%;
}
#rheader
{
background: transparent;
height: 76px;
width: 100%;
}
/*页面头及左侧样式*/
.mainTop
{
height: 50px;
background: url(images/top_bg.png) repeat-x;
}
.logo
{
width: 50%;
height: 50px;
float: left;
background: url(images/logo.png) no-repeat;
}
.mainTopMenu
{
width:100%;
height: 26px;
background-image: url(images/menu_bg.png);
}
.timer
{
font-size: 10pt;
color: #2E618B;
padding-top: 5px;
padding-right: 5px;
}
/*可变大小区域样式*/
.contents
{
width: 100%;
height: auto;
background: #DFE8F6;
}
相关问答:
我想做的是这样一个效果,你左边做的是导航菜单,假如有若干个超级链接,点击某个后这个链接的内容要到右边显示。当然这个功能可以使用Html中的 frame框架实现,但是现在有很多的浏览器不支持这种frame,能不能用css ......
我现在在学习网站开发,学习的过程中发现CSS是用来设置样式的,而DOM也可以用来设置样式,js库也可以。
这些究竟在什么时候用什么?
请指点!谢谢!
不用js+dom操作css,LZ写个用dom操作css的来看看
DOM只是一 ......
setSampleList : function(dataList){
var newslist = document.getElementById("newslist");
var basePath = document.getElementById("basePath").value ......
CSS code:
body {
}
#x
{
width:1024px;
height:768%;
background-color:Red;
position:relative;
}
#x.top
{ position:absolute;
width:800px;
height:100px;
top:0px ......