来源:5-4 CSS3背景 multiple backgrounds

奇兵解码

2014-10-30 22:56

<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8">
<title>多重背景</title>
<style type="text/css">
.demo {
    width: 300px;
    height: 140px;
    border: 1px solid #999;
    background:url(http://static.mukewang.com/static/img/logo_index.png)left top / 75% 55% no-repeat, 
               url(http://static.mukewang.com/static/img/logo_index.png)
 right bottom / 50% 40%            no-repeat;
}
</style>  
</head> 
<body>
<div class="demo"></div>
</body>
写回答 关注

0回答

还没有人回答问题,可以看看其他问题

十天精通CSS3

本课程为CSS3入门教程,深刻详解CSS3知识让网页穿上绚丽装备

242851 学习 · 2623 问题

查看课程

相似问题