用CSS实现动态拼图
Posted by admin on November 18, 2007 in 朝花夕拾 Views:605 views
译者:Sylvia_Queen

预览:http://petewilliamsagency.com/css/examples/pie/
代码:
<style type=”text/css” media=”screen”><!–
body {
margin: 30px;
font: 62.5% ‘Trebuchet MS’,Arial,sans-serif;
background: #FFF;
color: #121212;
}
h1 {
font-size: 2.0em;
color: #8DC63F;
}
p {
font-size: 1.4em;
color: #292929;
}
.pie {
display: block;
float: left;
margin: 0;
padding: 0;
width: 30px;
height: 30px;
background-image: url(’slices.gif’);
}
.size30 {
background-position: -150px 0;
}
.size35 {
background-position: -180px 0;
}
.percent {
margin: 0.4em 0 0 2.4em;
font-size: 1.6em;
font-weight: 600;
color: #8DC63F;
}
.shadow {
float: left;
margin: 3px 0 0 3px;
background: #CCC;
}
#example {
float: left;
position: relative;
top: -3px;
left: -3px;
padding: 15px;
background: #FFF;
border: 1px solid #999;
}
–></style>
More: continued here
Last 5 posts in 朝花夕拾
- 人间天堂-美得让人窒息的小村庄(转载) - October 23rd, 2008
- mysqldump数据库操作命令 - June 30th, 2008
- 经典猴故事 - June 13th, 2008
- 160亿像素的图片!——达芬奇的《最后的晚餐》 - January 2nd, 2008
- 订阅新闻 - November 19th, 2007
Comment
Log in or Register to post a comment.