特征布局4

html:

<!DOCTYPE html>
<html>
<head>
<title>特征布局4</title>
<meta name="generator" content="Bluefish 2.2.7" >
<meta name="author" content="dst" >
<meta name="date" content="2018-09-14T02:01:59+0800" >
<meta name="copyright" content="">
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8">
<meta http-equiv="content-style-type" content="text/css">
<meta http-equiv="expires" content="0">
<link href="css/特征布局4.css" rel="stylesheet" type="text/css">
</head>
<body>
    <div class="box0">
        <span class="newsHead">新聞列表</span>
        <div class="moreinfo"><a id="more" >更多&gt;&gt;</a></div>
        <ul>
            <li>
                <img src="img/dot.gif" alt="">
                <img src="img/webwxgetmsgimg" alt="">
                <a class="newsItem" href="#">國(guó)足止步八強(qiáng)賽,張玉寧掩面而泣</a>
                <span>2016-06-23</span>
            </li>
            <li>
                <img src="img/dot.gif" alt="">
                <img src="img/webwxgetmsgimg" alt="">
                <a class="newsItem" href="#">國(guó)足止步八強(qiáng)賽,張玉寧掩面而泣</a>
                <span>2016-06-23</span>
            </li>
            <li>
                <img src="img/dot.gif" alt="">
                <img src="img/webwxgetmsgimg" alt="">
                <a class="newsItem" href="#">國(guó)足止步八強(qiáng)賽,張玉寧掩面而泣</a>
                <span>2016-06-23</span>
            </li>
            <li>
                <img src="img/dot.gif" alt="">
                <img src="img/webwxgetmsgimg" alt="">
                <a class="newsItem" href="#">國(guó)足止步八強(qiáng)賽,張玉寧掩面而泣</a>
                <span>2016-06-23</span>
            </li>
            <li>
                <img src="img/dot.gif" alt="">
                <img src="img/webwxgetmsgimg" alt="">
                <a class="newsItem" href="#">國(guó)足止步八強(qiáng)賽,張玉寧掩面而泣</a>
                <span>2016-06-23</span>
            </li>
            <li>
                <img src="img/dot.gif" alt="">
                <img src="img/webwxgetmsgimg" alt="">
                <a class="newsItem" href="#">國(guó)足止步八強(qiáng)賽,張玉寧掩面而泣</a>
                <span>2016-06-23</span>
            </li>
        </ul>

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

css:

*{
    padding: 0px;
    margin: 0px;
}
.box0{
    margin: 100px auto;
    width: 600px;
    height: 290px;
    border: 1px solid gray;
    position: relative;
}
.newsHead{
    display: inline-block;
    width: 100px;
    height: 50px;
    margin-left: 20px;
    text-align: center;
    font: 18px 雅黑;
    color: black;
    line-height: 50px;
    border-bottom: red 2px solid;
    float: left;
}
.moreinfo{
    display: inline-block;
    width: 460px;
    height: 50px;
    margin-right: 20px;
    text-align: right;
    line-height: 50px;
    border-bottom: gray 1px solid;
    float: left;
}
ul{
    display: block;
    width: 560px;
    height: 238px;
    margin: 0px 20px;
    position: absolute;
    top: 52px;
}
li{
    width: 100%;
    height: 38px;
    list-style: none;
    line-height: 38px;
    float: left;
    border-bottom: 0.1px solid #eee;
}
img{
    vertical-align: middle;
}
a{
    text-decoration: none;
}
span{
    float: right;
}
#more{
    color: gray;
}
.newsItem{
    display: inline-block;
    list-style: none;
    font: 14px 雅黑;
    color: black;
}
a:hover, #more:hover{
    color: red;
}

效果圖:


特征布局4.png
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

推薦閱讀更多精彩內(nèi)容

  • <!DOCTYPE html> *{margin: 0;padding: 0;}.outer{width...
    小袋鼠cf閱讀 200評(píng)論 0 0
  • 第一部分 HTML&CSS整理答案 1. 什么是HTML5? 答:HTML5是最新的HTML標(biāo)準(zhǔn)。 注意:講述HT...
    kismetajun閱讀 27,646評(píng)論 1 45
  • 學(xué)會(huì)使用CSS選擇器熟記CSS樣式和外觀屬性熟練掌握CSS各種選擇器熟練掌握CSS各種選擇器熟練掌握CSS三種顯示...
    七彩小鹿閱讀 6,334評(píng)論 2 66
  • 1、通過(guò)CocoaPods安裝項(xiàng)目名稱(chēng)項(xiàng)目信息 AFNetworking網(wǎng)絡(luò)請(qǐng)求組件 FMDB本地?cái)?shù)據(jù)庫(kù)組件 SD...
    陽(yáng)明AGI閱讀 16,008評(píng)論 3 119
  • 姥姥,你走了42天了…… 我連最后一眼都沒(méi)能看到! 每到周六,我就會(huì)渾身一驚!又一個(gè)星期過(guò)去了,總想著好像你沒(méi)走,...
    我是大溫閱讀 149評(píng)論 0 0