请老师帮忙检查下
来源:2-15 编程练习
慕侠635704
2019-11-20 23:45:36
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>background属性</title>
<style type="text/css">
/*此处写代码*/
.content{
width:500px;
height:250px;
padding:20px;
border:15px rgba(255,0,0,0.5) solid;
text-align:center;
font-size:20px;
font-weight:bolder;
line-height:40px;
background:url(http://climg.mukewang.com/582c39c00001091605000150.jpg)#ccc no-repeat;
background-size:90%;
background-position:center 120px;
background-clip:padding-box;
}
</style>
</head>
<body>
<!-- 此处写代码 -->
<div class="content">慕课网(imooc)国内最大的it技能学习平台</div>
</body>
</html>1回答
同学你好,代码是正确的,继续加油,祝学习愉快~
相似问题