background-size属性是不是不可以连写在background里面?
这个我把background-size 的那个90% 连写在background 里面的no-repeat后面 在浏览器里面看了一下 好像没有什么变化
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>background属性</title>
<style type="text/css">
/*此处写代码*/
div{
border: 5px solid rgba(255,0,0,0.5);
padding: 20px;
width:600px;
height: 300px;
text-align: center;
background: url(http://img1.sycdn.imooc.com/climg//582c39c00001091605000150.jpg) no-repeat;
background-color: #ccc;
background-position: center 80%;
background-clip: padding-box;
background-size: 90%;
}
</style>
</head>
<body>
<!-- 此处写代码 -->
<div >
慕课网(IMOCC)国内最大的it技能学习平台
</div>
</body>
</html>

恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星