列表

详情


FED12. 按要求写一个圆

描述

请将html模块的div元素设置为一个半径是50px的圆,且边框为1px的黑色实线。
要求:
1. 圆角属性仅设置一个值
2. 圆角属性单位请使用px
注意:由于圆角属性设置广泛且都可以实现题目效果,所以请按照要求规范书写。

原站题解

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

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

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

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

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

{"css":"","js":"","html":"<html>\n    <head>\n        <meta charset=utf-8>\n        <style type=\"text/css\">\n            div {\n                height: 100px;\n                width: 100px;\n                border: 1px solid;\n                border-radius: 50px;\n                background-color: red;\n            }\n        </style>\n    </head>\n    <body>\n        <div></div>\n    </body>\n</html>","libs":[]}

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

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

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

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

上一题