请老师帮忙检查下我的代码是否合理和规范,谢谢

来源: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回答

樱桃小胖子

2019-07-01

效果实现的是可以的,代码也是可以的,另外,练习提供了图片素材的网址哦

http://climg.mukewang.com/582c39c00001091605000150.jpg

希望可以帮到你!

0

0 学习 · 40143 问题

查看课程