搜狐新闻中心,左边栏图文列表:
图文html结构:
看具体演示效果:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=gb2312" /> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <title>新闻中心-搜狐</title> <style type="text/css"> /* 全局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} </style> </head> <body> <div class="column380"> <h2><span><a href="" target=_blank>深度关注</a></span><a href="" target=_blank>更多</a></h2> <div class=blank10></div> <div class=picTextGroup> <p><a href="" target=_blank> <img height=70 alt=当代中国大学生信仰调查 src="/UploadFiles/2021-03-30/777_10b40fce_706f_42e9_bf7e_1cb0a994ca80_0.jpg"> 提示:您可以先修改部分代码再运行
友情链接:杰晶网络 DDR爱好者之家 南强小屋 黑松山资源网 白云城资源网 站点地图 SiteMap
Copyright © 2006~2024 白云城资源网 All Rights Reserved.
Design by m.dyhadc.com