zoukankan      html  css  js  c++  java
  • html 7 圣诞树 浮动 相对位置

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
        <title>Document</title>
    
        <style type="text/css">
    
    
        div{
            margin:0 auto;
        }
    
    
    
        #triangle-up{
            width:0;
            height:0;
            border-left:80px solid transparent;
            border-right:80px solid transparent;
            border-bottom:70px solid green;
            float:right;
            position:relative;
            right:44.5%;
        }
    
    
        #triangle-up-bigger{
            width:0;
            height:0;
            border-left:140px solid transparent;
            border-right:140px solid transparent;
            border-bottom:80px solid green;
            padding-top:55px;
        }
    
        #treeRoot{
            width:30px;
            height:100px;
            background: brown;
        }
    
    
        </style>
    
    
    </head>
    <body>
    
        <div id="triangle-up">
        </div>
        <div id="triangle-up-bigger"></div>
        <div id="treeRoot"></div>
    
    
    
    </body>
    </html>
  • 相关阅读:
    Yii隐藏单入口
    JS字符串的问题
    暑假第三测
    暑假第二测
    暑假第一测
    沈阳集训day4
    沈阳集训day3
    P2571 [SCOI2010]传送带
    CF626C Block Towers
    洛谷P4171 [JSOI2010]满汉全席
  • 原文地址:https://www.cnblogs.com/zy2012/p/3725422.html
Copyright © 2011-2022 走看看