列表

详情


FED13. 设置盒子宽高

描述

请将html模块类为"box"的div元素宽度和高度都设置为100px,且内间距为20px、外间距为10px。

原站题解

HTML/CSS/JavaScript 解法, 执行用时: 786ms, 内存消耗: 85556KB, 提交时间: 2022-03-07

{"css":"","js":"","html":"<html>\n    <head>\n        <meta charset=utf-8>\n        <style type=\"text/css\">\n            /*补全代码*/\n            .box {\n                width: 100px;\n                height: 100px;\n                margin: 10px;\n                padding: 20px\n            }\n        </style>\n    </head>\n    <body>\n        <div class=\"box\">\n        </div>\n    </body>\n</html>","libs":[]}

HTML/CSS/JavaScript 解法, 执行用时: 1680ms, 内存消耗: 77880KB, 提交时间: 2022-02-09

{"css":"","js":"","html":"<html>\n    <head>\n        <meta charset=utf-8>\n        <style type=\"text/css\">\n            /*补全代码*/\n            div{\n                height:100px;\n                width:100px;\n                padding:20px;\n                margin:10px;\n            }\n        </style>\n    </head>\n    <body>\n        <div class=\"box\">\n        </div>\n    </body>\n</html>","libs":[]}

HTML/CSS/JavaScript 解法, 执行用时: 1680ms, 内存消耗: 77884KB, 提交时间: 2022-02-08

{"css":"","js":"","html":"<html>\n    <head>\n        <meta charset=utf-8>\n        <style type=\"text/css\">\n            /*补全代码*/\n             .box {\n           width: 100px;\n           height: 100px;\n           padding: 20px;\n           margin: 10px;\n       }\n        </style>\n    </head>\n    <body>\n        <div class=\"box\">\n        </div>\n    </body>\n</html>","libs":[]}

HTML/CSS/JavaScript 解法, 执行用时: 1683ms, 内存消耗: 77816KB, 提交时间: 2022-02-08

{"css":"","js":"","html":"<html>\n    <head>\n        <meta charset=utf-8>\n        <style type=\"text/css\">\n            /*补全代码*/\n\n            \n            .box{\n                width:100px;\n                height:100px;\n                padding:20px;\n                margin:10px;\n                border:1px solid;\n            }\n        </style>\n    </head>\n    <body>\n        <div class=\"box\">\n        </div>\n    </body>\n</html>","libs":[]}

HTML/CSS/JavaScript 解法, 执行用时: 1689ms, 内存消耗: 77796KB, 提交时间: 2022-02-09

{"css":"","js":"","html":"<html>\n    <head>\n        <meta charset=utf-8>\n        <style type=\"text/css\">\n            /*补全代码*/\n            .box{\n              width: 100px;\n              height:100px;\n              padding: 20px;\n              margin: 10px;  \n            }\n        </style>\n    </head>\n    <body>\n        <div class=\"box\">\n        </div>\n    </body>\n</html>","libs":[]}

上一题