代码

作者: 这就是个帅气的名字 | 来源:发表于2017-01-21 22:25 被阅读0次

    1.<!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">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title><style>
    div{width:100px;height:100px;background:red;margin:10px;display:inline-block;}
    </style>
    </head>

    <body><div></div><div></div><div></div>
    </body>
    </html>

    <!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">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title><style>
    div{width:100px;height:100px;background:red;margin:10px;float:left;}
    </style>
    </head>

    <body><div></div><div></div><div></div>
    </body>
    </html>

    <!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">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title><style>
    body{margin:0;}
    .div1{width:100px;height:100px;background:red;}
    .div2{width:100px;height:100px;background:blue;position:relative;left:100px;bottom:100px;}

    </style>
    </head>

    <body><div class="div1">div1</div><div class="div2">div2</div>
    </body>
    </html>

    Paste_Image.png

    <!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">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>无标题文档</title>
    <style>body,html,p,ul,li,dl,dd,dt,h1,h2,h3,h4,h5,h6{padding:0px;
    margin:0px;}
    div3{list-style:none;}
    .clear:after{content"";
    display:block;
    clear:both;
    overflow:hidden;
    visibility:hidden;
    zoom:1px;}
    .box{
    width:226px;
    padding:0 20px 11px;
    }
    .div1{
    width:18px;
    height:19px;
    border:1px #000 solid;
    border-bottom:none;
    font-size:12px;
    display:inline-block;
    }
    .div2{
    display:inline-block;
    font-size:20px;
    line-height:60px;
    }
    .div3{
    margin-left:2px;
    width:110px;
    height:31px;
    border:#ccc 1px solid;
    border-bottom:none;
    text-align:center;
    line-height:30px;
    }
    .div4{
    width:110px;
    height:31px;
    border-bottom:#ccc 1px solid;
    position:relative;
    left:113px;
    top:-31px;
    text-align:center;
    color:#ccc;
    line-height:30px;
    }
    .div6{
    width:226px;
    height:160px;
    background-image:url(5.gif);
    margin-bottom:20px;
    }
    .div7{
    width:20px;
    height:26px;
    z-index:1;
    text-align:center;
    background:#e2291c;
    position:relative;
    top:134px;
    float:left
    }
    .div5{
    width:206px;
    line-height:26px;
    background:black;
    position:relative;
    top:134px;
    opacity:0.5;
    float:left;
    color:#fff;
    text-indent:1em;
    font-size:12px;
    }
    .form{font-size:13px;
    text-indent:2.5em;
    margin-bottom:10px;
    }

    </style>
    </head>

    <body>
    <div class="box">
    <div class="div1">TOP</div>
    <div class="div2">排行榜</div>
    <div class="div3">最热排行</div>
    <div class="div4">新课上线</div>
    <div class="div6">
    <div class="div7">1</div>
    <div class="div5">张小龙:微信四大价值观</div>
    </div>
    <div class="div6">
    <div class="div7">1</div>
    <div class="div5">刘超:互联网时代需要什么样...</div>
    </div>
    <div class="div6">
    <div class="div7">1</div>
    <div class="div5">马化腾:腾讯将专注于做互联网</div>
    </div>
    <div class="div6">
    <div class="div7">1</div>
    <div class="div5">IT领袖峰会圆桌会谈:互联网下</div>
    </div>
    <div class="div6">
    <div class="div7">1</div>
    <div class="div5">微信支付对实体商业的价值几何?</div>
    </div>
    <div class="form">张小龙:小程序正式发布</div>
    <div class="form">马化腾:通向互联网未来的七</div>
    <div class="form">马化腾:腾讯现在只做两件事</div>
    <div class="form">使用UE4制作VR内容的优化</div>
    <div class="form">何凌南:谣言在想什么</div>

    </div>
    </body>
    </html>

    相关文章

      网友评论

          本文标题:代码

          本文链接:https://www.haomeiwen.com/subject/bnsnbttx.html