html写网页 兼容问题,网页页面原结构和CSS写法导致浏览器兼容问题

首页-牛腩新闻发布系统

/*

/*

* 创建人:牛腩

*/

* { /* 把默认值都设置为0 */

margin:0;

padding:0;

border-width:0;

}

body {

font-size: 14px;

}

a:link,a:visited {

/* 鼠标未移上去的超链接的样式, 超链接访问后的样式 */

color: #000;

text-decoration: none;

}

a:hover {

/* 鼠标移到超链接上的样式 */

color: #00f;

text-decoration: underline;

}

#top, #search, #main, #footer { /* 公共样式 */

margin: 10px auto 10px auto;

width: 760px;

}

#main { /* 可变内容区域样式 */

}

ul,li { /* 项目列表样式 */

list-style-type:none;

}

li {

text-align: center;

margin: 20px;

}

li a:link, li a:visited {

/* 分类名称样式 */

color: #00f;

text-decoration: underline;

font-weight: bold;

}

li a:hover {

color: #f00;

}

.commonfrm {

/* 框架公共样式 */

border:1px solid #DEDFDE;

float: left;

}

.commonfrm h4 {

/* 框架标题样式 */

color: #fff;

background-color: #7BAEEF;

height: 26px;

line-height: 26px;

padding-left: 10px;

font-size: 14px;

}

.commonfrm table {

width: 100%;

text-align: center;

border-collapse: collapse; /* 细线表格 */

}

.commonfrm table th, .commonfrm table td{

padding: 5px;

}

.commonfrm tr, .commonfrm td {

/* height: 26px !important;

*height: auto !important; ie7 */

/* height:auto; ie6是auto */

}

.commonfrm .th_category { /* 表格中类别名称列的宽度 */

width: 100px;

}

.commonfrm .th_time { /* 表格中发布时间列的宽度 */

width: 150px;

}

.commonfrm .td_category {

color: #999;

}

.commonfrm .td_time {

color: #999;

font-size: 12px;

}

#category {

/* 新闻分类框架 */

width: 180px;

height: 368px !important; height: 378px;

margin-right:5px;

margin-bottom: 10px;

}

#newnews {

/* 最新新闻框架 */

width: 560px;

margin-left: 5px;

margin-bottom: 10px;

}

#hotnews {

/* 热点新闻框架 */

width: 560px;

margin-left: 5px;

margin-bottom: 10px;

}

/*]]>*/

最新新闻
所属类别新闻标题发布时间
[体育新闻]1234567892008-2-59
[体育新闻]1234567892008-2-59
[体育新闻]1234567892008-2-59
[体育新闻]1234567892008-2-59
[体育新闻]1234567892008-2-59
热点新闻
所属类别新闻标题发布时间
[体育新闻]1234567892008-2-59
[体育新闻]1234567892008-2-59
[体育新闻]1234567892008-2-59
[体育新闻]1234567892008-2-59
[体育新闻]1234567892008-2-59

[Ctrl A 全部选择 提示:你可先修改部分代码,再按运行]

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值