题解 | #圣诞树#

圣诞树

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

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

全部评论

相关推荐

06-26 17:24
已编辑
宁波大学 golang
迷失西雅图:别给,纯kpi,别问我为什么知道
点赞 评论 收藏
分享
程序员小白条:你是沟通了900个,不是投了900份简历,你能投900份,意味着对面都要回复你900次,你早就找到实习了,没亮点就是这样的,别局限地区,时间投的也要早,现在都要7月了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务