题解 | 圣诞树

圣诞树

https://www.nowcoder.com/practice/4924913926d94e96a70bbf2a50847852

{"html":"<!DOCTYPE html>\r\n<html>\r\n    <head>\r\n        <meta charset=utf-8>\r\n        <style type=\"text/css\">\r\n            .topbranch {\r\n                width: 0px;\r\n                height: 0px;\r\n                /*\r\n                * TODO: 上枝叶效果\r\n                */\r\n                float:left;\r\n                margin:0 auto;\r\n                border:100px solid green;\r\n                border-left-color:transparent;\r\n                border-right-color:transparent;\r\n                border-top-color:transparent;\r\n                margin-left:100px; \r\n                \r\n            }\r\n            .middleBranch {\r\n                 width: 0px;\r\n                height: 0px;\r\n                /*\r\n                * TODO: 中枝叶效果\r\n                */\r\n                border:200px solid green;\r\n                border-left-color:transparent;\r\n                border-right-color:transparent;\r\n                border-top-color:transparent;\r\n            }\r\n            .base {\r\n                width: 70px;\r\n                height: 200px;\r\n                background-color:gray;\r\n                float:left;\r\n                margin-left:165px;\r\n                /*\r\n                * TODO: 树干效果\r\n                */\r\n                \r\n            }\r\n        </style>\r\n    </head>\r\n    <body>\r\n    \t<section class=\"topbranch\"></section>\r\n        <section class=\"middleBranch\"></section>\r\n        <section class=\"base\"></section>\r\n    </body>\r\n</html>","css":"/* html, body {\\n\\twidth: 100%;\\n\\theight: 100%;\\n\\tmargin: 0;\\n\\tpadding: 0;\\n} */","js":"// 请在这里输入代码"}

全部评论

相关推荐

迟缓的斜杠青年巴比Q了:简历被投过的公司卖出去了,我前两天遇到过更离谱的,打电话来问我有没有意向报班学Java学习,服了,还拿我学校一个学长在他们那报班学了之后干了华为OD当招牌
点赞 评论 收藏
分享
爱吃肉的伊登在写日记:好棒,27届简历能做成这个样子,但是第一个项目感觉cover住难度还是不小的,特别是二面的时候肯定要对分布式系统设计这一块儿有高出正常面试者的水平才行
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务