logo 广告
Loading...
 导航 所在位置:论坛首页 -> ┈┋电脑网络┋┈ -> 网页制作技术 -> 一个效果很不错的CSS列表
回复
标题:一个效果很不错的CSS列表收藏 编辑 删除 楼主 | 上一篇 下一篇
年少轻狂
头像
等级:社区游侠
权限:普通用户
积分:37
金钱:3647
声望:64
经验:64
发帖数:861
注册:2007年10月26日
资料 短消息2008-4-23 9:54:50

CSS代码:
Example Source Code [
*{ margin:0; padding:0; list-style:none; border:none;}
body{ font-size:12px; font-family: Verdana; line-height:1.8; padding:30px;}
.c{ clear:both;}

a:link,a:visited{color:#FFF;text-decoration:none;}
a:hover,a:active{color:#FFCC00;text-decoration:underline;} 

.info{background:#06518A; width:500px; padding:25px 10px 10px 10px;}
.info div{border:2px solid #B48E47; background:url(bg.gif) right top repeat-y #01395C; padding:10px;}
.info h2{ background:url(faq.gif) top center no-repeat; margin-top:-30px; position:absolute; width:480px; height:50px;}
.info span{ text-align:right; display:block}
.info li{ background:url(ic.gif) no-repeat center left; padding-left:10px; float:left; width:225px;}


XHTML代码:(部分)

Example Source Code [
<div class="info">
  <div>
    <h2> </h2>
    <span><a href=""><img src="more.jpg" alt="more" /></a></span>
    <ul>
      <li><a href="">css test 001.</a></li>
      <li><a href="">css test 002.</a></li>
      <li><a href="">css test 003.</a></li>
      <li><a href="">css test 004.</a></li>
      <li><a href="">css test 005.</a></li>
      <li><a href="">css test 006.</a></li>
      <li><a href="">css test 001.</a></li>
      <li><a href="">css test 002.</a></li>
      <li><a href="">css test 003.</a></li>
      <li><a href="">css test 004.</a></li>
      <li><a href="">css test 005.</a></li>
      <li><a href="">css test 006.</a></li>
    </ul>
    <p class="c"></p>
  </div>
</div>
源码如下:

<!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=utf-8" />
<title>css test .</title>
<style>
*{ margin:0; padding:0; list-style:none; border:none;}
body{ font-size:12px; font-family: Verdana; line-height:1.8; padding:30px;}
.c{ clear:both;}
a:link,a:visited{color:#FFF;text-decoration:none;}
a:hover,a:active{color:#FFCC00;text-decoration:underline;}
/*list box*/
.info{background:#06518A; width:500px; padding:25px 10px 10px 10px;}
.info div{border:2px solid #B48E47; background:url(http://www.zishu.cn/attachments/month_0801/h20081222242.gif) right top repeat-y #01395C; padding:10px;}
.info h2{ background:url(http://www.zishu.cn/attachments/month_0801/120081222150.gif) top center no-repeat; margin-top:-30px; position:absolute; width:480px; height:50px;}
.info span{ text-align:right; display:block}
.info li{ background:url(http://www.zishu.cn/attachments/month_0801/n20081222216.gif) no-repeat center left; padding-left:10px; float:left; width:225px;}
</style>
</head>
<body>
<div class="info">
<div>
<h2> </h2>
<span>more....</span>
<ul>
<li><a href="">css test 001.</a></li>
<li><a href="">css test 002.</a></li>
<li><a href="">css test 003.</a></li>
<li><a href="">css test 004.</a></li>
<li><a href="">css test 005.</a></li>
<li><a href="">css test 006.</a></li>
<li><a href="">css test 001.</a></li>
<li><a href="">css test 002.</a></li>
<li><a href="">css test 003.</a></li>
<li><a href="">css test 004.</a></li>
<li><a href="">css test 005.</a></li>
<li><a href="">css test 006.</a></li>
</ul>
<p class="c"></p>
</div>
</div>
<div class="info">
<div>
<h2> </h2>
<span>more....</span>
<ul>
<li><a href="">css test 001.</a></li>
<li><a href="">css test 002.</a></li>
<li><a href="">css test 003.</a></li>
<li><a href="">css test 004.</a></li>
<li><a href="">css test 005.</a></li>
<li><a href="">css test 006.</a></li>
<li><a href="">css test 001.</a></li>
<li><a href="">css test 002.</a></li>
<li><a href="">css test 003.</a></li>
<li><a href="">css test 004.</a></li>
<li><a href="">css test 005.</a></li>
<li><a href="">css test 006.</a></li>
</ul>
<p class="c"></p>
</div>
</div>
<div class="info">
<div>
<h2> </h2>
<span>more....</span>
<ul>
<li><a href="">css test 001.</a></li>
<li><a href="">css test 002.</a></li>
<li><a href="">css test 003.</a></li>
<li><a href="">css test 004.</a></li>
<li><a href="">css test 005.</a></li>
<li><a href="">css test 006.</a></li>
<li><a href="">css test 001.</a></li>
<li><a href="">css test 002.</a></li>
<li><a href="">css test 003.</a></li>
<li><a href="">css test 004.</a></li>
<li><a href="">css test 005.</a></li>
<li><a href="">css test 006.</a></li>
</ul>
<p class="c"></p>
</div>
</div>
<div class="info">
<div>
<h2> </h2>
<span>more..</span>
<ul>
<li><a href="">css test 001.</a></li>
<li><a href="">css test 002.</a></li>
<li><a href="">css test 003.</a></li>
<li><a href="">css test 004.</a></li>
<li><a href="">css test 005.</a></li>
<li><a href="">css test 006.</a></li>
<li><a href="">css test 001.</a></li>
<li><a href="">css test 002.</a></li>
<li><a href="">css test 003.</a></li>
<li><a href="">css test 004.</a></li>
<li><a href="">css test 005.</a></li>
<li><a href="">css test 006.</a></li>
</ul>
<p class="c"></p>
</div>
</div>
</body>
</html>

签名

2008-4-23 9:54:50 顶部
第1页 共页 共0个回复     <<    >>    
 快速回复
  • 支持UBB,HTML标签

  • 高级回复

  • 操作选项:评分 加精 解精 奖惩 设专题 设公告 解公告 固顶 总固顶 解固顶 结帖 解结帖 锁帖 解锁 移帖 删帖
      首页 | 购买指南 | 虚拟主机 | 特色介绍 | 下载中心 | 支付方式
    Copyright 2004-2008 BBSGood.com Powered By: BBSGood.Speed Version 5.0
      咨询电话:0575-85513832、0575-85513825(传真)、7*24小时咨询服务:13606552007 不良信息举报中心 浙ICP备05029817号
      业务QQ:38958768、客服QQ1:415896239、客服QQ2:343896043、MSN:jccsxx@hotmail.com