题解 | #盒模型- 外边距折叠#
盒模型- 外边距折叠
https://www.nowcoder.com/practice/9c6f4a2626d34b798f20ed31ba17e441
{"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 .top {\n \n width:100px;\n height:100px;\n margin:10px;\n background:red;\n }\n .bottom {\n \n width:100px;\n height:100px;\n margin:10px; \n background-color:black;\n position:absolute;\n }\n </style>\n </head>\n <body>\n <section class=\"top\"></section>\n <section class=\"bottom\"></section>\n </body>\n</html>","libs":["jquery","underscore"]}
section是块级元素
搜狐畅游公司福利 1309人发布