新闻网页图文共存php,CSS_CSS 网页布局中的图文列表实现代码,搜狐新闻中心,左边栏图文列 - phpStudy...

/p>

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

新闻中心-搜狐

/* 全局CSS定义 */

body { text-align: center; margin:0 auto; padding:0; background: #FFF; font-size:12px; color:#000;font-family:宋体;}

body > div {text-align:center; margin-right:auto; margin-left:auto;}

div,form,ul,ol,li,span,p {margin: 0; padding: 0; border: 0;}

img,a img{border:0; margin:0; padding:0;}

h1,h2,h3,h4,h5,h6 { margin:0; padding:0;font-size:12px;font-weight:normal;}

ul,ol,li {list-style:none}

table,td,input {font-size:12px}

table {margin:0 auto;}

.column380 {width:380px;float:left;display:inline;border:1px solid #B8CBE4;margin:50px;}

.blank10 {margin:0 auto;height:10px; font-size:1px;clear:both;}

h2 {height:20px;background: #D8E3F1 url(http://news.sohu.com/upload/2008_sohunews/images/bg08.gif) no-repeat left top;color:#039;text-align:right;padding:0 4px 0 14px;line-height:20px;border-bottom:1px solid #B8CBE4;}

h2 span {font-weight: bold;float:left;}

h2 a {color:#039;}

.picTextGroup {width:352px;margin:0 auto;color:#666;line-height:20px;}

.picTextGroup img {margin:0 10px 0 0;border:1px #A5C0E1 solid;background:#fff;padding:1px;}

.picTextGroup .title {color:#039;font-size:18px;font-weight: bold;line-height:26px;}

.picTextGroup .title a {color:#039;}

.picTextGroup a {color:#666;}

.picTextGroup .moreT a {color:#A4621C;}

.picTextGroup a:hover {color:#CC0000;}

.f12list ul {width:360px;margin:0 auto;clear:both;}

/* 链接颜色 */

a {color: #000;text-decoration:none}

a:hover {text-decoration:underline;}

.picTextGroup {text-align:left;margin:0 auto;line-height:20px;color:#333;width:92%}

.picTextGroup img {margin:0 4px 0 0;float:left;} /*图文混排*/

.picTextGroup a {color:#333;}

.picTextGroup p {clear:none}

/* 列表属性 */

.f12list .more {text-align:right}

.f12list li,.f12list p {color:#333;line-height:22px;font-size:12px;text-align:left}

.f12list li a,.f12list p a {color:#333}

.f12blue td a,.f12list tr a {color:#003399}

提示:您可以先修改部分代码再运行

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值