列表

详情


FED19. CSS单位(二)

描述

请将html模块div元素的宽度和高度设置为html根元素字体大小的4倍。
注意:只需在css模块补全样式内容,请勿修改html模块。

原站题解

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

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

HTML/CSS/JavaScript 解法, 执行用时: 1750ms, 内存消耗: 77772KB, 提交时间: 2021-11-29

{"css":"","js":"","html":"<html>\n    <head>\n        <meta charset=utf-8>\n        <style type=\"text/css\">\n            div {\n                /*补全代码*/\n                width:4rem; height:4rem;\n            }\n        </style>\n    </head>\n    <body>\n        <div></div>\n    </body>\n</html>","libs":[]}

HTML/CSS/JavaScript 解法, 执行用时: 1752ms, 内存消耗: 77848KB, 提交时间: 2022-01-21

{"css":"","js":"","html":"<html>\n    <head>\n        <meta charset=utf-8>\n        <style type=\"text/css\">\n            div {\n                /*补全代码*/\n               height:4rem;\n               width:4rem;\n            }\n        </style>\n    </head>\n    <body>\n        <div></div>\n    </body>\n</html>","libs":[]}

HTML/CSS/JavaScript 解法, 执行用时: 1752ms, 内存消耗: 77852KB, 提交时间: 2022-01-21

{"css":"","js":"","html":"<html>\n    <head>\n        <meta charset=utf-8>\n        <style type=\"text/css\">\n            div {\n                 width:4rem;\n                height:4rem;\n                \n                /*补全代码*/\n                \n            }\n        </style>\n    </head>\n    <body>\n        <div></div>\n    </body>\n</html>","libs":[]}

HTML/CSS/JavaScript 解法, 执行用时: 1752ms, 内存消耗: 77900KB, 提交时间: 2022-01-21

{"css":"","js":"","html":"<html>\n    <head>\n        <meta charset=utf-8>\n        <style type=\"text/css\">\n            div {\n                /*补全代码*/\n                width: 4rem;\n                height: 4rem;\n                background:red;\n            }\n        </style>\n    </head>\n    <body>\n        <div></div>\n    </body>\n</html>","libs":[]}

上一题