题解 | #盒模型 - 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":[]}
查看7道真题和解析