3-19 编程练习作业提交
来源:3-19 编程练习
MiMicccc
2020-08-27 15:39:55
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>border属性</title> <style type="text/css"> .container { width: 200px; height: 200px; background-color: pink; /*补充样式*/ padding: 50px 0 0 100px; } .content { width: 102px; height: 100px; background-color: purple; /*补充样式*/ padding: 30px 30px 0 30px; } span { background-color: yellow; } </style> </head> <body> <div class="container"> <div class="content"> <span> 我是span元素 </span> </div> </div> </body> </html>
1回答
同学你好,代码实现是正确的,继续加油,祝学习愉快~
相似问题