zoukankan      html  css  js  c++  java
  • 2019.12.09-新闻列表布局代码

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="utf-8">
    <title>特征布局</title>
    </head>
    <style type="text/css">
    .news_list_com{
    600px;
    height: 290px;
    border:1px solid #ddd;
    margin: 50px auto 0;
    overflow: hidden;
    }

    .news_list_com h3{
    560px;
    height: 50px;
    border-bottom: 1px solid #ddd;
    margin: 0px auto;
    }

    .news_list_com h3 span{
    float: left;
    height: 50px;
    border-bottom: 2px solid red;
    font:18px/50px 'Microsoft Yahei';
    color: #000;
    padding: 0 15px;
    position: relative;
    }

    .news_list_com h3 a{
    float: right;
    font:14px/14px 'Microsoft Yahei';
    color: #666;
    text-decoration: none;
    margin-top: 28px;
    }

    .news_list_com h3 a:hover{
    color: red;
    }

    .news_list_com ul{
    list-style: none;
    padding: 0;
    560px;
    height: 238px;
    margin: 7px auto 0;
    }

    .news_list_com ul li{
    height: 38px;
    border-bottom: 1px solid #ddd;
    background:url(images/dot.gif) left center no-repeat;
    }

    .news_list_com ul a{
    float: left;
    height: 38px;
    line-height: 38px;
    font:14px/38px 'Microsoft Yahei';
    text-decoration: none;
    color: #000;
    text-indent: 30px; /* 首行缩进 */
    background:url(images/icon.jpg) 5px center no-repeat;
    }

    .news_list_com ul a:hover{
    color: red;
    }


    .news_list_com ul span{
    float: right;
    height: 38px;
    line-height: 38px;
    font:14px/38px 'Microsoft Yahei';
    color: #000;
    }

    </style>
    <body>

    <div class="news_list_com">
    <h3><span>新闻列表</span><a href="#">更多&gt;&gt;</a></h3>
    <ul>
    <li><a href="">特征布局:新闻列表所需知识点:盒模型/浮动</a><span>2019.12.5</span></li>
    <li><a href="">特征布局:新闻列表所需知识点:盒模型/浮动</a><span>2019.12.5</span></li>
    <li><a href="">特征布局:新闻列表所需知识点:盒模型/浮动</a><span>2019.12.5</span></li>
    <li><a href="">特征布局:新闻列表所需知识点:盒模型/浮动</a><span>2019.12.5</span></li>
    <li><a href="">特征布局:新闻列表所需知识点:盒模型/浮动</a><span>2019.12.5</span></li>
    <li><a href="">特征布局:新闻列表所需知识点:盒模型/浮动</a><span>2019.12.5</span></li>
    </ul>

    </div>

    </body>
    </html>

  • 相关阅读:
    数据库中的LEFT JOIN 个人理解
    C++ 类的继承方式
    KMP字符串匹配算法
    C++ 运算符重载_加号
    Pin API INS
    Python 爬虫爬取多页数据
    Pin
    NO.12 13 章 字符串&扩展(哈希、KMP、分块、BIT)
    NO.11章 DP(递归递推、最大连续子序列和、LIS、LCS、最长回文子串、DAG、背包)
    NO.10章 图(遍历、最短路、生成树、拓扑、关键路径)
  • 原文地址:https://www.cnblogs.com/lishuide/p/12014243.html
Copyright © 2011-2022 走看看