设为首页 加入收藏 网站搜索 繁體中文 中国建站网 — 站长资源平台

DIV CSS布局实例:DIV+CSS新闻列表制作

来源本站整理 作者:佚名 时间:2007-9-1 13:36:15 该文得分0
div css xhtml <a target=xml Source Code to Run" onload="return imgzoom(this,550);" onclick="javascript:window.open(this.src);" style="cursor: pointer;"/> Source Code to Run [www.136z.com]
    [ 可先修改部分代码 再运行查看效果 ]

CSS文件:div css xhtml <a target=xml Example Source Code" onload="return imgzoom(this,550);" onclick="javascript:window.open(this.src);" style="cursor: pointer;"/> Example Source Code [www.136z.com].list{
    margin: 0px 10px 20px;
    text-align: left;    
}

.list ul{
    list-style-type: none;
    margin: 0px;
    padding: 0px;
}

.list li{
    background: url(attachments/month_0612/j20061214102450.gif) repeat-x bottom; 
    /*列表底部的虚线*/
    width: 100%;    
}
.list li a{
    color: #777777;
    display: block;
    padding: 0px 0px 4px 15px;
    background: url(attachments/month_0612/q20061214102443.gif) no-repeat 0 6px;
    /*列表左边的箭头图片*/
}

.list li span{
    float: right;/*使span元素浮动到右面*/
    text-align: right;/*日期右对齐*/
}
.list li a:hover{
    color: #336699;
    background: url(attachments/month_0612/d20061214102457.gif) repeat-x bottom;
}

XHTML文件:div css xhtml <a target=xml Example Source Code" onload="return imgzoom(this,550);" onclick="javascript:window.open(this.src);" style="cursor: pointer;"/> Example Source Code [www.136z.com]<ul class="list">
<li><span>2006年6月6日 </span><a href="http://www.136z.com/#">新闻标题01</a></li>
<li><span>2006年6月6日 </span><a href="http://www.136z.com/#">新闻标题02</a></li>
<li><span>2006年6月6日 </span><a href="http://www.136z.com/#">新闻标题03</a></li>
<li><span>2006年6月6日 </span><a href="http://www.136z.com/#">新闻标题04</a></li>
</ul>

相关文章
广告赞助
网友评论

共有 0 位网友发表了评论,平均得分: 0 查看完整内容

用户名:

分 值:100分 85分 70分 55分 40分 25分 10分 0分

内 容:

(注“”为必填内容。) 验证码: 验证码,看不清楚?请点击刷新验证码