初学CSS

1、花千骨

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style type="text/css">
    #jituan{
        color: red;
    }
    #zhuyan1{
        color: blue;
    }
    #teyan{
        color: orange;
    }
    #zhuyan2{
        color: green;
    }
    #weishi{
        color: orange;
    }
    h1{
        color: #0056b3;
    }
    .tu2{
        display: inline-block;

    }
    #tu1 img{
        height: 162px;
        width: 102px;
    }
    </style>
</head>
<body>
<h1>花千骨</h1>
<p>
    《花千骨》是由 <u id="jituan">慈文传媒集团</u>制作并发行,<span id="zhuyan1">林玉芬、高林豹、梁胜权联合执导,霍建华、赵丽颖</span>领衔主演,<span id="teyan">蒋欣、杨烁</span>特别出演,<span id="zhuyan2">张丹峰、李纯、马可、鲍天琦、安悦溪、徐海乔</span>等主演的古装玄幻仙侠剧。 该剧改编自fresh果果同名小说,讲述少女花千骨与长留上仙白子画之间关于责任、成长、取舍的纯爱虐恋[1] 。该剧于2014年5月6日开机,9月15日杀青,8月12日发布中文及英文版的预告片[2] 。 该剧于2015年6月9日起每周二、周三晚10点在 <span id="weishi">湖南卫视</span>的钻石独播剧场播出。[3] 2015年7月5日起,该剧播放时间已经改为每周日、周一晚10点。当天零点在爱奇艺同步更新。[4]
</p>
<div id="tu1">
    <img src="./img/1.jpg" alt="">
</div>
<h1>主要演员</h1>
<div class="tu2">
    <div class="tu2">
        <img src="./img/2.jpg" alt="">
    </div>
    <div class="tu2">
        <img src="./img/3.jpg" alt="">
    </div>
</div>
</body>
</html>

在这里插入图片描述
2、商品分类

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style type="text/css">
        *{
            margin: 0px;
            padding: 0px;
        }
        body{
            background-color: gainsboro;
        }
        #container{
            width: 230px;
            background-color: white;
            margin: 10px auto;
            font-family: 宋体;
        }
        #title{
            background-color: black;
            color: white;
            line-height: 35px;
            height: 35px;
            padding-left: 20px;
            font-weight: bold;
        }
        dl{
            border-bottom: 1px dashed darkgray;
            padding: 5px;
            font-size: 12px;
        }
        dl dt{
            font-weight: bold;
            padding-left: 25px;
            height: 30px;
            line-height: 30px;
        }
        dl:first-of-type dt{
            background: url("./图片素材/icon_01.gif") 0px -3px no-repeat;
        }
        dl:nth-of-type(2) dt{
            background: url("./图片素材/icon_02.gif") 0px -3px no-repeat;
        }
        dl:nth-of-type(3) dt{
            background: url("./图片素材/icon_03.gif") 0px -3px no-repeat;
        }
        dl:nth-of-type(4) dt{
            background: url("./图片素材/icon_04.gif") 0px -3px no-repeat;
        }
        dl:nth-of-type(5) dt{
            background: url("./图片素材/icon_05.gif") 0px -3px no-repeat;
        }
        dl:nth-of-type(6) dt{
            background: url("./图片素材/icon_06.gif") 0px -3px no-repeat;
        }
        dl:nth-of-type(7) dt{
            background: url("./图片素材/icon_07.gif") 0px -3px no-repeat;
        }
        dl:nth-of-type(8) dt{
            background: url("./图片素材/icon_08.gif") 0px -3px no-repeat;
        }
        dl:nth-of-type(9) dt{
            background: url("./图片素材/icon_09.gif") 0px -3px no-repeat;
        }
        dl:last-child{
            border-bottom: none;
        }
        dl dd{
            line-height: 20px;
        }
        dl dd a{
            text-decoration: none;
            color: black;
        }
    </style>
</head>
<body>
    <div id="container">
        <div id="title">全部分类</div>
        <dl>
            <dt>护肤</dt>
            <dd>
                <a href="#">洁面</a>
                <a href="#">化妆水</a>
                <a href="#">喷雾</a>
                <a href="#">美容液</a>
                <a href="#">眼霜</a>
                <a href="#">眼部精华</a>
                <a href="#">眼膜</a>
                <a href="#">面膜</a>
                <a href="#">面膜贴</a>
                <a href="#">水洗面膜</a>
                <a href="#">免洗面膜</a>
                <a href="#">精华</a>
                <a href="#">精油</a>
                <a href="#">啫哩</a>
                <a href="#">凝霜</a>
                <a href="#">乳液</a>
                <a href="#">面霜</a>
                <a href="#">日霜</a>
                <a href="#">晚霜</a>

            </dd>
        </dl>
        <dl>
            <dt>彩妆</dt>
            <dd>
                <a href="#">卸妆</a>
                <a href="#">防晒</a>
                <a href="#">隔离</a>
                <a href="#">BB霜</a>
                <a href="#">粉底</a>
                <a href="#">粉饼</a>
                <a href="#">睫毛膏</a>
                <a href="#">眼影</a>
                <a href="#">唇彩</a>
                <a href="#">腮红</a>
                <a href="#">眼线笔</a>
                <a href="#">底妆</a>
                <a href="#">遮瑕</a>
                <a href="#">蜜粉</a>
                <a href="#">眉笔</a>
                <a href="#">美甲</a>
            </dd>
        </dl>
        <dl>
            <dt>香氛</dt>
            <dd>
                <a href="#">男香</a>
                <a href="#">女香</a>
                <a href="#">小Q装</a>
                <a href="#">中性香水</a>
            </dd>
        </dl>
        <dl>
            <dt>身体护理</dt>
            <dd>
                <a href="#">洗发</a>
                <a href="#">护发</a>
                <a href="#">沐浴</a>
                <a href="#">身体乳</a>
                <a href="#">手足护理</a>
                <a href="#">护手霜</a>
                <a href="#">纤体</a>
                <a href="#">身体精油</a>
                <a href="#">颈部护理</a>
                <a href="#">个人护理</a>
                <a href="#">卫生用品</a>
                <a href="#">脱毛</a>
            </dd>
        </dl>
        <dl>
            <dt>礼盒套装</dt>
            <dd>
                <a href="#">护肤套装</a>
                <a href="#">身体护理套装</a>
                <a href="#">彩妆套装</a>
                <a href="#">旅行装</a>
                <a href="#">香水套装</a>
                <a href="#">男士套装</a>
            </dd>
        </dl>
        <dl>
            <dt>美容工具</dt>
            <dd>
                <a href="#">护肤</a>
                <a href="#">彩妆</a>
                <a href="#">美发</a>
                <a href="#">美体</a>
                <a href="#">美甲</a>
                <a href="#">美容仪器</a>
                <a href="#">其他美容工具</a>
            </dd>
        </dl>
        <dl>
            <dt>母婴专区</dt>
            <dd>
                <a href="#">奶粉</a>
                <a href="#">尿裤湿巾</a>
                <a href="#">母婴洗护</a>
            </dd>
        </dl>
        <dl>
            <dt>男士专区</dt>
            <dd>
                <a href="#">洁面</a>
                <a href="#">爽肤水</a>
                <a href="#">面霜</a>
                <a href="#">啫哩</a>
                <a href="#">男香</a>
                <a href="#">眼霜</a>
                <a href="#">凝胶</a>
                <a href="#">乳液</a>
                <a href="#">精华</a>
                <a href="#">沐浴</a>
            </dd>
        </dl>
        <dl>
            <dt>食品保健</dt>
            <dd>
                <a href="#">瘦身类</a>
                <a href="#">保健类</a>
                <a href="#">美容类</a>
                <a href="#">食品类</a>
            </dd>
        </dl>
    </div>
</body>
</html>

在这里插入图片描述

3、超市商品

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style type="text/css">
        body,ul,li,a{
            margin: 0px;
            padding: 0px;
        }
        ul{
            border: 2px solid orange;
            width: 180px;
        }
        ul li{
            border-bottom: 1px dashed black;
            font-size: 12px;
            height: 50px;
            line-height: 50px;
            padding-left: 50px;
            font-weight: bold;
        }
        ul li a{
            text-decoration: none;
            color: black;
        }
        ul li a:hover{
            color: orange;
        }
        ul li:first-of-type{
            background: url("./img/icon_01.jpg") 5px 0px no-repeat;
        }
        ul li:nth-of-type(2){
            background: url("./img/icon_02.jpg") 5px 0px no-repeat;
        }
        ul li:nth-of-type(3){
            background: url("./img/icon_03.jpg") 5px 0px no-repeat;
        }
        ul li:nth-of-type(4){
            background: url("./img/icon_04.jpg") 5px 0px no-repeat;
        }
        ul li:nth-of-type(5){
            background: url("./img/icon_05.jpg") 5px 0px no-repeat;
        }
        ul li:nth-of-type(6){
            background: url("./img/icon_06.jpg") 5px 0px no-repeat;
        }
        ul li:nth-of-type(7){
            background: url("./img/icon_07.jpg") 5px 0px no-repeat;
        }
        ul li:nth-of-type(8){
            background: url("./img/icon_08.jpg") 5px 0px no-repeat;
        }
        ul li:nth-of-type(9){
            background: url("./img/icon_09.jpg") 5px 0px no-repeat;
        }
        ul li:nth-of-type(10){
            background: url("./img/icon_10.jpg") 5px 0px no-repeat;
        }
        ul li:last-child{
            border-bottom:none;
        }
    </style>
</head>
<body>
    <ul>
        <li>
            <a href="#">酒水、饮料</a>
        </li>
        <li>
            <a href="#">进口食品</a>
        </li>
        <li>
            <a href="#">休闲零食</a>
        </li>
        <li>
            <a href="#">地方特产</a>
        </li>
        <li>
            <a href="#">保健、冲调</a>
        </li>
        <li>
            <a href="#">粮油、生鲜</a>
        </li>
        <li>
            <a href="#">美容洗护</a>
        </li>
        <li>
            <a href="#">清洁洗涤</a>
        </li>
        <li>
            <a href="#">母婴、纸品</a>
        </li>
        <li>
            <a href="#">家居百货</a>
        </li>
    </ul>
</body>
</html>

在这里插入图片描述
4、孵化小组

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style type="text/css">
        body,div,ul,li,a{
            margin: 0px;
            padding: 0px;
        }
        #container{
            background: url("./img/trendTopBg.gif") 0px 0px no-repeat;
            width: 200px;
            margin: 10px auto;
        }
        #title{
            height: 35px;
            line-height: 35px;
            padding: 10px 50px;
            color: white;
            background: url("./img/bg.gif") 10px 5px no-repeat;
        }
        ul li{
            list-style: none;
            background: url("./img/dotBg.gif") 0px 0px no-repeat;
            height: 32px;
            line-height: 32px;
            padding-left: 20px;
        }
        ul li a{
            text-decoration: none;
            font-family: 宋体;
        }
        #foot{
            background: url("./img/trendEndBg.jpg") 0px 0px no-repeat;
            height: 12px;
        }
    </style>
</head>
<body>
    <div id="container">
        <div id="title">孵化小组信息</div>
        <ul>
            <li>
                <a href="#">10月20日:java经营部</a>
            </li>
            <li>
                <a href="#">10月20日:java经营部</a>
            </li>
            <li>
                <a href="#">10月20日:java经营部</a>
            </li>
            <li>
                <a href="#">10月20日:java经营部</a>
            </li>
            <li>
                <a href="#">10月20日:java经营部</a>
            </li>
        </ul>
        <div id="foot"></div>
    </div>
</body>
</html>

在这里插入图片描述
5、化妆品导航

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style type="text/css">
        *{
            margin: 0px;
            padding: 0px;
        }
        body{
            background-color: #EEE7E1;
        }
        #container{
            width: 280px;
            background-color: white;
        }
        #title{
            background-color: #E9185A;
            color: white;
            font-size: 18px;
            line-height: 35px;
            height: 35px;
            padding: 0px 15px;
            font-weight: bold;
        }
        ul li{
            list-style: none;
            border-bottom: 1px dashed darkgray;
            padding: 5px;
            font-size: 12px;
        }
        ul li a{
            color: gray;
            text-decoration: none;
        }
        ul li a span{
            background: url("./img/dot_01.gif") -1px -2px no-repeat;
            width: 27px;
            height: 24px;
            display: inline-block;
            padding-left: 8px;
            color: white;
        }
        ul li:hover{
            color:#E9185A;
        }
        ul li:hover a{
            color: #E9185A;
        }
        ul li:hover a span{
            background: url("./img/dot_02.gif") -1px -2px no-repeat;
        }
        ul li:hover div{
            display: block;
        }
        ul li div{
            text-align: center;
            display: none;
        }
    </style>
</head>
<body>
    <div id="container">
        <div id="title">大家都是喜欢彩妆</div>
        <ul>
            <li>
                <a href>
                    <span>1</span>
                    Za姬苒新能真皙美白隔离霜 35g
                </a>
                <div>
                    <img src="./img/icon-1.jpg" alt="">
                    <p>$1245  xxx</p>
                </div>
            </li>
            <li>
                <a href>
                    <span>2</span>
                    Za姬苒新能真皙美白隔离霜 35g
                </a>
                <div>
                    <img src="./img/icon-2.jpg" alt="">
                    <p>$1245  xxx</p>
                </div>
            </li>
            <li>
                <a href>
                    <span>3</span>
                    Za姬苒新能真皙美白隔离霜 35g
                </a>
                <div>
                    <img src="./img/icon-3.jpg" alt="">
                    <p>$1245  xxx</p>
                </div>
            </li>
            <li>
                <a href>
                    <span>4</span>
                    Za姬苒新能真皙美白隔离霜 35g
                </a>
                <div>
                    <img src="./img/icon-4.jpg" alt="">
                    <p>$1245  xxx</p>
                </div>
            </li>
        </ul>
    </div>
</body>
</html>

在这里插入图片描述

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值