摘要:本篇教程介绍了HTML+CSS入门之一个CSS效果,希望阅读本篇文章以后大家有所收获,帮助大家HTML+CSS入门。
本篇教程介绍了HTML+CSS入门之一个CSS效果,希望阅读本篇文章以后大家有所收获,帮助大家HTML+CSS入门。
<
程序代码
<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(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;}</style>
程序代码
<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>
HTML代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="//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([url]//www.zishu.cn/attachments/month_0801/h20081222242.gif[/url]) right top repeat-y #01395C; padding:10px;}
.info h2{ background:url([url]//www.zishu.cn/attachments/month_0801/120081222150.gif[/url]) top center no-repeat; margin-top:-30px; position:absolute; width:480px; height:50px;}
.info span{ text-align:right; display:block}
.info li{ background:url([url]//www.zishu.cn/attachments/month_0801/n20081222216.gif[/url]) no-repeat center left; padding-left:10px; float:left; width:225px;}
</style>
</head>
<body>
<div class="info">
<div>
<h2> </h2>
<span><a href=""><img src="//www.zishu.cn/attachments/month_0801/p20081222114.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>
<div class="info">
<div>
<h2> </h2>
<span><a href=""><img src="//www.zishu.cn/attachments/month_0801/p20081222114.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>
<div class="info">
<div>
<h2> </h2>
<span><a href=""><img src="//www.zishu.cn/attachments/month_0801/p20081222114.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>
<div class="info">
<div>
<h2> </h2>
<span><a href=""><img src="//www.zishu.cn/attachments/month_0801/p20081222114.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>
</body>
</html>
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
本文由职坐标整理发布,欢迎关注职坐标WEB前端HTML/CSS频道,获取更多HTML/CSS知识!
您输入的评论内容中包含违禁敏感词
我知道了
请输入正确的手机号码
请输入正确的验证码
您今天的短信下发次数太多了,明天再试试吧!
我们会在第一时间安排职业规划师联系您!
您也可以联系我们的职业规划师咨询:
版权所有 职坐标-一站式IT培训就业服务领导者 沪ICP备13042190号-4
上海海同信息科技有限公司 Copyright ©2015 www.zhizuobiao.com,All Rights Reserved.
沪公网安备 31011502005948号