请老师检查的我代码的写法是否正确,谢谢

来源:2-7 编程练习

wangstudyvc

2019-06-30 12:00:51

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>background-origin</title>
        <style type="text/css">
         div{
         width: 300px;
         height: 150px;
         border: 10px rgba(100,0,200,0.5) solid;
         padding: 0;
         margin: 0 auto;
         background-image: url("http://climg.mukewang.com/582c342b0001fd6507000210.jpg");
         background-clip: padding-box;
         }
         div:hover{
         background-repeat: no-repeat;
         background-image: url("http://climg.mukewang.com/582c34220001091605000150.jpg");
         background-origin: content-box;
         background-position: 10px 10px;
         background-clip: border-box;
         }
        </style>
    </head>
    <body>
     <div></div>
    </body>
</html>


写回答

1回答

好帮手慕夭夭

2019-06-30

你好同学,效果实现的正确,很棒哦,祝学习愉快!

1

0 学习 · 40143 问题

查看课程