CSS1. 盒模型 - content-box
描述
盒模型是CSS的核心概念,描述了元素如何显示,以及在一定程度上如何相互作用、相互影响。页面中的所有元素都被看作一个矩形盒子,这个盒子包含元素的内容、内边距、边框和外边距。HTML/CSS/JavaScript 解法, 执行用时: 1737ms, 内存消耗: 77816KB, 提交时间: 2021-12-30
{"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 .content-box{\n width:80px;\n height:80px;\n border: 5px solid black;\n padding:5px;\n }\n </style>\n </head>\n <body>\n <div class=\"content-box\"></div>\n </body>\n</html>","libs":[]}
HTML/CSS/JavaScript 解法, 执行用时: 1742ms, 内存消耗: 77872KB, 提交时间: 2022-01-23
{"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 \n .content-box {\n height: 80px;\n width: 80px;\n padding:5px;\n border: 5px solid black\n }\n </style>\n </head>\n <body>\n <div class=\"content-box\"></div>\n </body>\n</html>","libs":[]}
HTML/CSS/JavaScript 解法, 执行用时: 1744ms, 内存消耗: 77832KB, 提交时间: 2021-12-21
{"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 .content-box{\n width:80px;\n height:80px;\n border:solid black 5px;\n padding:5px;\n }\n </style>\n </head>\n <body>\n <div class=\"content-box\"></div>\n </body>\n</html>","libs":[]}
HTML/CSS/JavaScript 解法, 执行用时: 1745ms, 内存消耗: 77772KB, 提交时间: 2022-01-25
{"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 .content-box{\n width:80px;\n height:80px;\n padding:5px;\n border:5px solid black;\n }\n\n </style>\n </head>\n <body>\n <div class=\"content-box\"></div>\n </body>\n</html>","libs":[]}
HTML/CSS/JavaScript 解法, 执行用时: 1745ms, 内存消耗: 77800KB, 提交时间: 2022-01-21
{"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 .content-box{\n width: 80px;\n height: 80px;\n border:5px solid black;\n padding: 5px;\n }\n </style>\n </head>\n <body>\n <div class=\"content-box\"></div>\n </body>\n</html>","libs":[]}