1.开班信息表
<head>
<meta charset="UTF-8">
<title>开班信息</title>
<style type="text/css">
*{
margin: 0;
padding: 0;
}
body{
font: 12px/1 宋体;
}
/*设置outer的大小*/
.outer{
width: 300px;
margin: 50px auto;
}
.title{
border-top: 2px #019e8b solid;
height: 36px;
background-color: #f5f5f5;
line-height: 36px;
padding: 0px 22px 0px 16px;
}
.title a{
float: right;
color: red;
}
.title h3{
font: 16px/36px "微软雅黑";
}
.content{
border: 1px solid #deddd9;
padding: 0px 28px 0px 20px;
}
.content a{
color: black;
text-decoration: none;
font-size: 12px;
}
.content a:hover{
color: red;
text-decoration: underline;
}
.content h3{
margin-top: 14px;
margin-bottom: 16px;
}
.content .right{
float: right;
}
.content ul{
list-style: none;
border-bottom: 1px dashed #deddd9;
}
.content .no-border{
border: none;
}
.content .redfont{
color: red;
font-weight: bold;
}
.content li{
margin-bottom: 15px;
}
</style>
</head>
<body>
<div class="outer">
<div class="title">
<a href="#">18年面授开班计划</a>
<h3>近期开班</h3>
</div>
<div class="content">
<h3><a href="#">人工智能+Python-高薪就业班</a></h3>
<ul>
<li>
<a class="right" href="#"><span class="redfont">预约报名</span></a>
<a href="#">开班时间:<span class="redfont">2018-04-26</span></a>
</li>
<li>
<a class="right" href="#"><span class="redfont">无座,名额爆满</span></a>
<a href="#">开班时间:<span class="redfont">2018-03-23</span></a>
</li>
<li>
<a class="right" href="#"><span>开班盛况</span></a>
<a href="#">开班时间:<span>2018-01-23</span></a>
</li>
<li>
<a class="right" href="#"><span>开班盛况</span></a>
<a href="#">开班时间:<span>2017-12-20</span></a>
</li>
<li>
<a class="right" href="#"><span>开班盛况</span></a>
<a href="#">开班时间:<span>2017-11-18</span></a>
</li>
</ul>
<h3><a href="#">Android开发+测试-高薪就业班</a></h3>
<ul>
<li>
<a class="right" href="#"><span class="redfont">预约报名</span></a>
<a href="#">开班时间:<span class="redfont">2018-04-26</span></a>
</li>
<li>
<a class="right" href="#"><span>开班盛况</span></a>
<a href="#">开班时间:<span>2018-03-23</span></a>
</li>
<li>
<a class="right" href="#"><span>开班盛况</span></a>
<a href="#">开班时间:<span>2018-01-23</span></a>
</li>
<li>
<a class="right" href="#"><span>开班盛况</span></a>
<a href="#">开班时间:<span>2017-12-20</span></a>
</li>
</ul>
<h3><a href="#">大数据软件开发-青芒工作室</a></h3>
<ul class="no-border">
<li>
<a class="right" href="#"><span class="redfont">预约报名</span></a>
<a href="#">开班时间:<span class="redfont">2018-04-26</span></a>
</li>
<li>
<a class="right" href="#"><span>开班盛况</span></a>
<a href="#">开班时间:<span>2018-01-23</span></a>
</li>
</ul>
</div>
</div>
</body>
2.雪碧图
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>xuebi</title>
<style type="text/css">
.a{
width: 119px;
height: 43px;
}
.a1{
display: block;
width: 119px;
height: 44px;
background-image: url(img/雪碧图.png);
background-repeat: no-repeat;
/*background-position: 39px -35px;*/
}
.a1:hover{
width: 115px;
height: 31px;
background-position: -9px -51px;
}
.a1:active{
width: 83px;
height: 26px;
background-position: -9px -90px;
}
.b{
width: 47px;
height: 34px;
}
.b1{
display: block;
width: 47px;
height: 34px;
background-image: url(img/雪碧图.png);
background-repeat: no-repeat;
background-position: -8px -339px;
}
.b1:hover{
background-position: -59px -339px;
}
.b1:active{
background-position: -118px -337px;
}
</style>
</head>
<body>
<div class="a"><a href="#" class="a1"></a></div>
<div class="b"><a href="#" class="b1"></a></div>
</body>
</html>
- polo360
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>POLO360</title>
<link rel="stylesheet" type="text/css" href="css/reset.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<div class="header w">
<ul class="nav">
<li>
<a href="javascipt:;">HOME</a>
<p>Back to home</p>
</li>
<li>
<a href="javascipt:;">PRODUCTS</a>
<p>What we have for you</p>
</li>
<li>
<a href="javascipt:;">SERVICES</a>
<p>Things we do</p>
</li>
<li>
<a href="javascipt:;">BLOG</a>
<p>Follow our updates</p>
</li>
<li>
<a href="javascipt:;">CONTACT</a>
<p>Ways to reach us</p>
</li>
</ul>
<div class="logo">
<a href="#" title="海澜之家">
<img src="img/logo.png" alt="网站logo">
</a>
</div>
</div>
<!-- header的结束 -->
<div class="banner w">
<img src="img/banner/banner01.png" alt="抢眼的图片">
<div class="pointerDiv">
<a href="javascript:;"></a>
<a href="javascript:;" class="active"></a>
<a href="javascript:;"></a>
<a href="javascript:;"></a>
<a href="javascript:;"></a>
</div>
</div>
<!-- 内容区开始 -->
<div class="content w clearfix">
<h1>Lorem ipsum dolor sit amet, consectetur adipisicing elit</h1>
<!-- h1下边设置三个小标题块 -->
<div class="pl">
<h2>Perfect Logic</h2>
<p class="p1">All you want your website to do</p>
<div class="imgDiv">
<img src="img/pic/pic1.jpg" alt="男孩">
</div>
<p class="p2">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.1</p>
<a href="#" class="lm">Learn More</a>
</div>
<div class="cs">
<h2>Complete Solution</h2>
<p class="p1">A tool anything and everything you can think</p>
<div class="imgDiv">
<img src="img/pic/pic2.jpg" alt="女孩">
</div>
<p class="p2">Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciun tdolore magnam aliquam quaerat voluptatem.</p>
<a href="#" class="lm">Learn More</a>
</div>
<div class="uc">
<h2>Uber Culture</h2>
<p class="p1">Fresh. Modern and ready for future</p>
<div class="imgDiv">
<img src="img/pic/pic3.jpg" alt="西瓜">
</div>
<p class="p2">Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.</p>
<a href="#" class="lm">Learn More</a>
</div>
</div>
<div class="contact w clearfix">
<div class="sc">
<h2>Social Connection</h2>
<p class="p1">At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium</p>
<div class="icon">
<a href="#"><img src="img/logo1.png" alt="图1"></a>
<a href="#"><img src="img/logo2.png" alt="图2"></a>
<a href="#"><img src="img/logo3.png" alt="图3"></a>
<a href="#"><img src="img/logo4.png" alt="图4"></a>
<a href="#"><img src="img/logo5.png" alt="图5"></a>
</div>
<h2 class="nl">Newsletter</h2>
<p class="p1">At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium</p>
<form action="#">
<input class="txt" type="text" placeholder="your email address">
<button class="btn">Subscribe</button>
</form>
</div>
<div class="co">
<h2>Contact</h2>
<form action="#">
<input class="txt" type="text" placeholder="your name">
<input class="txt" type="text" placeholder="your email">
<textarea class="tarea" placeholder="message "></textarea>
<button class="btn">Send it</button>
</form>
</div>
<div class="nu">
<h2>News Updates</h2>
<p>
<img src="img/pic/new1.png" alt="new1">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</p>
<p>
<img src="img/pic/new2.png" alt="new2">
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam.
</p>
<p class="no">
<img src="img/pic/new3.png" alt="new3">
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium.
</p>
<button class="btn">Visit our Blog</button>
</div>
</div>
<div class="footer">
<div class="w">
<p class="copy">Copyright 2010. Studio VIVROCKS. All Rights Reserved.</p>
<p>Site Powered by Wordpress. Design and Developed by VIVROCKS.</p>
<p>
<a href="#">Home</a> | <a href="#">About</a> |<a href="#">Products</a> | <a href="#">Services</a> | <a href="#">Contact</a>
</p>
<p>
<a href="#">Privacy Policy</a> | <a href="#">Terms of use</a>
</p>
</div>
</div>
<!-- foot结束 -->
<!--[if IE 6]>
<script src="js/DD_belatedPNG_0.0.8a-min.js"></script>
<script type="text/javascript">DD_belatedPNG.fix('div,img,a,h1');</script>
<![endif]-->
</body>
</html>
链接的css
body{
background: url(../img/bd-bg.png) repeat-x;
}
.clearfix:before,
.clearfix:after{
content: "";
display: table;
clear: both;
}
.clearfix{
zoom:1;
}
.w{
width: 940px;
margin: 0 auto;
}
.header{
padding-top: 37px;
padding-bottom: 46px;
}
.logo{
margin-left: 15px;
}
.nav{
list-style: none;
float: right;
margin-top: 22px;
}
.nav li{
float: left;
padding: 0 10px 8px;
border-left: 1px #d6d6d6 dotted;
}
.nav a{
color: #666;
font: bold 14px Georgia;
text-decoration: none;
}
.nav a:hover{
color: #a1a1a1;
text-decoration: underline;
}
.nav p{
color: #b7b7b7;
font: 11px tahoma;
}
.banner{
height: 356px;
background: url(../img/banner-bg.png) no-repeat bottom center;
position: relative;
}
.pointerDiv{
position: absolute;
top: 314px;
left: 15px;
}
.pointerDiv a{
float: left;
width: 17px;
height: 17px;
margin-left: 4px;
background:url(../img/sprite.png) no-repeat;
}
.pointerDiv .active,
.pointerDiv a:hover{
background:url(../img/sprite.png) no-repeat -27px 0px;
}
.content h1{
text-align: center;
font: bold 24px Georgia;
padding: 6px 0 20px 0;
margin-bottom: 38px;
background: url(../img/line.png) no-repeat bottom center;
}
.content .pl, .content .cs, .content .uc,
.contact .sc, .contact .co, .contact .nu{
float: left;
width: 300px;
}
.content .pl,.content .cs,.content .uc,
.contact .sc,.contact .co,.contact .nu
{
float: left;
width: 300px;
}
.content .cs, .contact .co{
margin: 0 20px;
}
.content h2{
color:#11719e;
font:21px Georgia;
}
.content .p1{
color: #8c8c8c;
font:12px Helvetica;
}
.content .imgDiv{
width: 299px;
height: 190px;
background: url(../img/img.bg.png) no-repeat;
margin: 15px 0;
padding: 12px;
text-align: center;
}
.content .p2{
height: 92px;
color: #3e3e3e;
font: 13px Helvetica;
word-spacing: 2px;
}
.content .lm{
display: block;
width: 163px;
height: 40px;
background: url(../img/btn1.png) no-repeat;
color: #016999;
font: 12px/40px Helvetica;
text-indent: 1em;
text-decoration: none;
margin-bottom: 35px;
}
.contact{
background: url(../img/line.png) no-repeat top center;
}
.contact .sc, .contact .co, .contact .nu{
}
.contact .txt{
width: 276px;
height: 33px;
line-height: 33px;
background: url(../img/input.png) no-repeat;
border: none;
padding: 0px 10px;
margin: 0 0 16px;
}
.contact .tarea{
display: block;
width: 276px;
height: 114px;
background: url(../img/testarea.png) no-repeat;
border: none;
overflow: auto;
resize: none;
padding: 10px;
margin: 0;
}
.contact .btn{
width: 163px;
height: 32px;
background: url(data:image/data.png) no-repeat;
border: none;
padding: 0;
margin: 11px 0 23px;
color:white;
font: 18px Georgia;
text-align: left;
text-indent: 1em;
cursor: pointer;
}
.contact h2{
color: #444;
font: 18px/1 Georgia;
border-bottom: 1px dashed #d3d3d3;
padding: 44px 0 10px;
margin: 15px;
}
.sc .p1{
color: #444;
font: 12px/1 Helvetica;
}
.sc .icon{
font-size: 0px;
margin-top: 4px;
}
.sc .icon a{
margin-right: 6px;
}
.sc .nl{
color: #444;
font: bold 18px/1 "Gill Sans MT";
padding: 22px 0 10px;
}
.sc .txt{
margin-top: 15px;
margin-bottom: 0;
}
.nu img{
float: left;
margin-right: 8px;
}
.nu p{
color:#444;
height:58px;
_height:60px;
font: 12px/1 Helvetica;
border-bottom: 1px dashed #d3d3d3;
margin-bottom: 15px;
padding-bottom: 8px;
}
.nu .no{
margin-bottom: 0;
}
.nu .btn{
*margin-left: -1em;
}
.footer{
height: 173px;
background: #333;
border-top: 10px solid #4c4c4c;
}
.footer a, .footer p{
color:#999;
font: 11px Helvetica;
text-decoration: none;
}
.footer a:hover{
color:#d1d2d2;
text-decoration: underline;
}
.footer .copy{
float: right;
display: inline;
}
.footer p{
margin-left: 8px;
margin-right: 24px;
margin-bottom: 10px;
}
.footer .w{
padding-top: 18px;
}
功能链接
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}