前端基础知识——HtmlCss实例(七)

在这里插入图片描述

<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title></title>
    <style>
        body,h2,ul{margin:0;padding:0;font-family:"宋体";}
        li{list-style:none;}
        a{text-decoration:none;color:cadetblue;}
        img{border:none;vertical-align:top;}
        .clear{zoom:1;}
        .clear:after{content:"";display:block;clear:both;}   
        .wrap{width:500px; margin:30px 200px;padding-top:11px;background:#f4fafb;}
        .head {
            height:25px;
            background: url(headBg.gif) no-repeat;
        }
        .title { 
            line-height: 24px;
            padding-top: 1px;
            font-size: 12px;
            color: steelblue;
            text-indent:33px;
            background: url(titleBg.gif) no-repeat 6px 4px;
        }
        .picls {
            padding-top: 16px;
        }
            .picls li {
                padding-right: 17px;
                margin: 0 8px;
                float: left;
                display: inline;
                background: url(liBg.gif) no-repeat right 17px;
            }
            .picls a {
                display: block;
            }

            .picls img {
                border: 1px solid #c8c4d3;
                padding: 2px;
                background: #fff;
            }

            .picls strong {
                display: block;
                text-align: center;
                padding-top: 4px;
                font: normal 12px/22px "宋体";
            }

        .textls {
            padding: 0 27px;
            line-height: 22px;
            font-size: 12px;
        }

            .textls li {
                background: url(textListBg.gif) no-repeat 0 10px;
                text-indent: 14px;
            }
    </style>
</head>
<body>
    <div class="wrap">
        <div class="head">
            <h2 class="title">一切都会好起来哒</h2>
        </div>
        <ul class="picls clear" >
            <li>
                <a href="#">
                    <img src="4.png" width="100" alt="Alternate Text" />
                    <strong>康康是谁</strong>
                </a>
            </li>
            <li>
                <a href="#">
                    <img src="5.png" width="105" alt="Alternate Text" />
                    <strong>上个勾儿</strong>
                </a>
            </li>
            <li>
                <a href="#">
                    <img src="6.png" width="100" alt="Alternate Text" />
                    <strong>夏西仁儿</strong>
                </a>
            </li>
        </ul>
        <ul class="textls">
            <li> <a href="#">to be or not to be</a>   </li>
            <li> <a href="#">to be or not to be</a>   </li>
            <li> <a href="#">to be or not to be</a>   </li>
        </ul>
    </div>
</body>
</html>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值