特征布局three

2018-09-13  本文已影响0人  Es__
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>特征布局</title>
    <link rel="stylesheet" href="css/tzthr.css">
</head>
<body>
    <div class="box">
        <div class="box1"><span>新闻列表</span></div>
        <div class="box2"><a href="#" class="sr">更多&gt&gt</a></div>
        <ul>
            <li> <img class="d" src="img/dot.gif" alt=""><img src="img/icon.jpg" alt=""><a href="#">国足又将迎来土帅?里皮下课已成定局!</a>   <a class="t" href="#">2016-06-23</a> </li>
            <li> <img class="d" src="img/dot.gif" alt=""><img src="img/icon.jpg" alt=""><a href="#">国足又将迎来土帅?里皮下课已成定局!</a>   <a class="t" href="#">2016-06-23</a> </li>
            <li> <img class="d" src="img/dot.gif" alt=""><img src="img/icon.jpg" alt=""><a href="#">国足又将迎来土帅?里皮下课已成定局!</a>   <a class="t" href="#">2016-06-23</a> </li>
            <li> <img class="d" src="img/dot.gif" alt=""><img src="img/icon.jpg" alt=""><a href="#">国足又将迎来土帅?里皮下课已成定局!</a>   <a class="t" href="#">2016-06-23</a> </li>
            <li> <img class="d" src="img/dot.gif" alt=""><img src="img/icon.jpg" alt=""><a href="#">国足又将迎来土帅?里皮下课已成定局!</a>   <a class="t" href="#">2016-06-23</a> </li>
            <li> <img class="d" src="img/dot.gif" alt=""><img src="img/icon.jpg" alt=""><a href="#">国足又将迎来土帅?里皮下课已成定局!</a>   <a class="t" href="#">2016-06-23</a> </li>
        </ul>
    </div>
</body>
</html>
*{
    padding: 0;
    margin: 0;
}
.box{
    margin: 100px auto;
    width: 560px;
    height: 290px;
    border: 1px rgb(210,210,210) solid ;
    padding: 0px 20px;
}
.box1{
    float: left;
    width: 100px;
    height: 50px;
    border-bottom: 2px red solid;
    text-align: center;
}
.box2{
    float: left;
    width: 460px;
    height: 50px;
    border-bottom: 1px rgb(210,210,210) solid;
    margin: 0px 0px 10px 0px;

}
span{
    font: bold 18px/50px 微软雅黑;
}
.sr{
    display: block;
    float: right;
    font: 18px/50px 微软雅黑;
    color: rgb(210,210,210);
    text-decoration: none;
}
a{
    text-decoration: none;
    font:  14px/35px 微软雅黑;
    color: #000;
}
ul{
    float: left;
    display: block;
    height: 210px;
    width: 560px;
}
li{
    display: block;
    height: 35px;
    border-bottom: 1px rgb(210,210,210) solid;

}
.t{
    display: block;
    float: right;
}
.d{
    position: relative;
    left: 0px ;
    top: -5px ;
}
img{
    position: relative;
    top: 2px;
    padding: 0px 5px 0px 0px;
}
a:hover{
    color: red;

}
tzth.PNG
上一篇 下一篇

猜你喜欢

热点阅读