题解 | #圣诞树#

圣诞树

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

{"css":"","js":"","html":"<!DOCTYPE html>\n<html>\n    <head>\n        <meta charset=utf-8>\n        <style type=\"text/css\">\n            .topbranch {\n                width: 0px;\n                height: 0px;\n                float:left;\n                border-bottom:100px solid green;\n                border-top:100px solid transparent;\n                border-left:100px solid transparent;\n                border-right:100px solid transparent;\n                margin-left:100px;\n                /*\n                * TODO: 上枝叶效果\n                */\n                \n            }\n            .middleBranch {\n                width: 0px;\n                height: 0px;\n                /*\n                * TODO: 中枝叶效果\n                */\n            \n                border-bottom:200px solid green;\n                border-top:200px solid transparent;\n                border-left:200px solid transparent;\n                border-right:200px solid transparent;\n                \n            }\n            .base {\n                /*\n                * TODO: 树干效果\n                */\n                float:left;\n                width:70px;\n                height:200px;\n                background-color:gray;\n                margin-left:165px\n                \n            }\n        </style>\n    </head>\n    <body>\n    \t<section class=\"topbranch\"></section>\n        <section class=\"middleBranch\"></section>\n        <section class=\"base\"></section>\n    </body>\n</html>","libs":[]}

全部评论

相关推荐

点赞 收藏 评论
分享
牛客网
牛客企业服务