为了账号安全,请及时绑定邮箱和手机立即绑定

怎么变颜色啊 用red或者#999 这种表示也变不了颜色


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

正在回答

2 回答

童鞋学习的好认真,这些细节都注意到了

bszlakqnmiahhuamdlko

0 回复 有任何疑惑可以回复我~
<!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) no-repeat, 
               red url(http://static.mukewang.com/static/img/logo_index.png) no-repeat;
}
</style>  
</head> 
<body>
<div class="demo"></div>
</body>
</html>

上面这样是可以的,把颜色放到第二个部分。

0 回复 有任何疑惑可以回复我~
#1

martinesk 提问者

谢谢你
2015-02-03 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

怎么变颜色啊 用red或者#999 这种表示也变不了颜色

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信