日期:2014-05-17 浏览次数:20627 次
一个用css实现的html5 Logo,主要用html和css技术实现,例子如下:
源代码下载地址:
css部分代码如下:
<style type="text/css">
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, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset,
form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
blockquote:before, blockquote:after, q:before, q:after {
content: "";
}
blockquote, q {
quotes: "" "";
}
body {
line-height: 1;
color: black;
background: white;
}
caption, th, td {
text-align: left;
font-weight: normal;
}
:focus {
outline: 0;
}
table {
border-collapse: separate;
border-spacing: 0;
}
ol, ul {
list-style: none;
}
a {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
color: #666;
text-decoration: none;
margin: 40px auto 0;
display: block;
width: 120px;
text-align: center;
}
.html5 {
width:345px;
height:385px;
display:block;
margin:100px auto 0;
position:relative;
}
.html5 .icon .text .left {
display:block;
position:absolute;
width:182px;
height:400px;
}
.html5 .icon .text .left .left {
display:block;
position:absolute;
width:40px;
height:130px;
background:#ebebeb;
top:72px;
left:82px;
-webkit-transform:skew(5deg);
-moz-transform:skew(5deg);
}
.html5 .icon .text .left .top {
display:block;
position:absolute;
width:104px;
height:40px;
background:#ebebeb;
top:72px;
left:80px;
}
.html5 .icon .text .left .middle {
display:block;
position:absolute;
width:96px;
height:40px;
background:#ebebeb;
top:162px;
left:88px;
}
.html5 .icon .text .left .bottom {
display:block;
position:absolute;
width:85px;
height:40px;
background:#ebebeb;
top:261px;
left:102px;
-webkit-transform::rotate(12deg);
-moz-transform:rotate(12deg);
}
.html5 .icon .text .left .vert {
display:block;
position:absolute;
width:40px;
height:70px;
background:#