帮忙看看吧,感谢
来源:2-15 编程练习
qq_初晴moment_5
2019-09-11 16:05:15
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>background属性</title> <style type="text/css"> div{ width: 500px; height: 300px; padding: 20px; border: 50px solid rgba(255,0,0,0.5); text-align: center; font-size: 23px; font-weight: bold; background: url(http://climg.mukewang.com/582c39c00001091605000150.jpg) no-repeat; background-size: 90%; background-clip: padding-box; background-position: center 150px; } </style> </head> <body> <div> <p>慕课网(imooc)国内最大的IT技能学习平台</p> </div> </body> </html>
1回答
同学你好,
老师运行了你的代码,效果是正确的,为使页面更加美观,边框可以设置的小一点哈。继续努力哦~
如果我的回答帮助了你,欢迎采纳,祝学习愉快~
相似问题