日期:2014-05-17  浏览次数:20673 次

ie8好像不识别css怎么办?
我的网页是用PHP写的,用ff或者chrome都能正常显示,ie9以上的都可以。但就是ie8以下的版本以及一些个伪浏览器--360啦 搜狗啦ie6换肤的浏览器下不可以,很多表格都只能显示个表头,内容显示不出来呀,怎么办?
css其实也是抄来的哈,希望能指点下,把它们修改成ie低版本都识别的类型。

这是我综合着抄来了css哈,帮忙看下吧,谢了!
CSS code

A:link {
    COLOR: #000000; TEXT-DECORATION: none; font-size:12px; font-family: "宋体"
}
A:visited {
    COLOR: #000000; TEXT-DECORATION: none
}
A:active {
    COLOR: #000000; TEXT-DECORATION: none
}
A:hover {
    COLOR: #5080A0
}
BODY {
    margin-top: 0px;
    margin-left: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    background-color:#DEEBEF;
}
BODY,TD,TH {
    FONT-SIZE:12px;
    color:#000000;
}
#login #login {
    background-color:#1F3F6F;
    height: 30px;
    width: 80px;
    BORDER-BOTTOM: #52798C 0px solid; 
    BORDER-LEFT: #52798C 0px solid;
    BORDER-RIGHT: #52798C 0px solid;
    BORDER-TOP: #52798C 0px solid;
    color:#AFCFFF;
}
#login #reset {
    background-attachment: fixed;
    background-image: url(../images/bg_05.gif);
    background-repeat: no-repeat;
    background-position: center center;
    height: 30px;
    width: 80px;
    BORDER-BOTTOM: #52798C 0px solid; 
    BORDER-LEFT: #52798C 0px solid;
    BORDER-RIGHT: #52798C 0px solid;
    BORDER-TOP: #52798C 0px solid;
    color:#52798C;
}
#add {
    height: 18px;
    width: 35px;
    background-color: #CCCCCC;
    border: 1px solid #CCCCCC;
}
.tmpa:link {
    COLOR: #000000; TEXT-DECORATION: none
}
.tmpa:visited {
    COLOR: #000000; TEXT-DECORATION: none
}
.tmpa:active {
    COLOR: #000000; TEXT-DECORATION: none
}
.tmpa:hover {
    COLOR: #000000
}
#reset {
    height: 18px;
    width: 35px;
    background-color: #CCCCCC;
    border: 1px solid #CCCCCC;
}
#r_add #s_del {
    height: 18px;
    width: 35px;
    background-color: #CCCCCC;
    border: 1px solid #CCCCCC;
    text-align: center;
    vertical-align: middle;
}



#login #lg {
    font-size: 20px;
    color: #305080;
    font-family: "黑体";
}
#login #lg-title {
    font-size: 20px;
    color: #305080;
    font-family: "黑体";
}
#login #lg-item {
    font-size: 12px;
    color: #305080;
    font-family: "宋体";
}

#list {
    text-indent: 45px;
    font-family: "宋体";
    font-size: 16px;
    font-style: normal;
    font-weight: bold;
    color: #333333;
    vertical-align: bottom;
}
.big_td {
    border: 1px solid #9CBED6;
    margin-top: 15px;
}


table{
    table-layout:fixed;
    empty-cells:show; 
    border-collapse: collapse;
    margin:0 auto;
}
td{
    height:40px;
}
h1,h2,h3{
    font-size:12px;
    margin:0;
    padding:0;
}

.title { background: #FFF; border: 1px solid #9DB3C5; padding: 1px; width:90%;margin:20px auto; }
    .title h1 { line-height: 31px; text-align:center;  background: #2F589C url(th_bg2.gif); background-repeat: repeat-x; background-position: 0 0; color: #FFF; }
        .title th, .title td { border: 1px solid #CAD9EA; padding: 5px; }


/*这个是借鉴一个论坛的样式*/
table.t1{
    border:1px solid #3A678A;
    color:#666;
}
table.t1 th {
    background-color: #000;
    height:30px;
}
table.t1 td,table.t1 th{
    border:1px solid 3A678A;
    padding:0 1em 0;
}
table.t1 tr.a1{
    background-color:#f5fafe;
}



------解决方案--------------------
楼主 光贴css 看不出效果,html呢
------解决方案--------------------
BODY,TD,TH {
FONT-SIZE:12px;
color:#000000;
}
#login #login {
background-color:#1F3F6F;
height: 30px;
width: 80px;
BORDER-BOTTOM: #52798C 0px solid; 
BORDER-LEFT: #52798C 0px solid;
BORDER-RIGHT: #52798C 0px solid;
BORDER-TOP: #52798C 0px solid;
color:#AFCFFF;
}
可能是低版本不识别这种结合在一起的写法。。你可以分开写再试试