2-7 编程练习
来源:2-7 编程练习
慕言_7946275
2019-07-22 22:21:27
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>background-origin</title> <style type="text/css"> div{width:300px; height:100px; border:10px solid rgba(74,63,159,0.4); padding:20px; background:url(http://climg.mukewang.com/582c342b0001fd6507000210.jpg) no-repeat; background-clip:padding-box; } div:hover{background:url(http://climg.mukewang.com/582c34220001091605000150.jpg) no-repeat 10px 10px; background-clip:border-box; background-origin:content-box; } </style> </head> <body> <div></div> </body> </html>
1回答
好帮手慕夭夭
2019-07-23
你好同学,效果实现正确,很棒,继续加油哦。祝学习愉快!
相似问题