题解 | #盒模型 - border-box#

盒模型 - border-box

https://www.nowcoder.com/practice/67bbcc5564cb495cb6c18e868c4aaf0b

{"css":"","js":"","html":"<!DOCTYPE html>\n<html>\n    <head>\n        <meta charset=utf-8>\n        <style type=\"text/css\">\n            * {\n                margin: 0;\n                padding: 0;\n            }\n            .border-box {\n                box-sizing:border-box;\n                width:100px;\n                height:100px;\n                border:5px solid black;\n                padding:5px;\n            }\n        </style>\n    </head>\n    <body>\n    \t<div class=\"border-box\"></div>\n    </body>\n</html>","libs":[]}

全部评论

相关推荐

2025-12-13 14:51
已编辑
井冈山大学 算法工程师
龙虾x:算法比你强的没有你美,比你美的…..算了已经没有比你美的了
工作两年想退休了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务