请老师帮忙检查下我的代码是否合理和规范,谢谢
来源:2-15 编程练习
wangstudyvc
2019-07-01 06:02:25
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>background属性</title>
<style type="text/css">
.container{
width: 500px;
height: 300px;
margin: 0 auto;
border: 5px rgba(200,0,0,0.5) solid;
background-color: #cccccc;
background-image: url("http://climg.mukewang.com/582c39c00001091605000150.jpg");
background-clip: padding-box;
background-size: 90%;
background-repeat: no-repeat;
background-origin: padding-box;
background-position: center 150px;
padding: 20px;
}
.container > h1{
font-size: 20px;
text-align: center;
}
</style>
</head>
<body>
<div class="container">
<h1>慕课网(IMOOC)国内最大的IT技能学习平台</h1>
</div>
</body>
</html>1回答
相似问题