京东商城网页

京东商城网页

大二的时候·写的一个商城项目里面用到css和html
代码如下

index.html
<body>

    <div class="J_event">
        <a href="#" class="w">
            <i></i>
        </a>
    </div>

    <div class="shortcut">
        <div class="w">
            <ul class="fl">
                <li>
                    <i class="pos"></i> 北京
                </li>
            </ul>
            <ul class="fr">
                <li>
                    <a href="#">
						 你好,请登录&nbsp;&nbsp;
					</a>
                    <a href="#" class="style-red">
						 免费注册
					</a>
                </li>
                <li class="spacer"></li>
                <li>
                    <a href="#">
						我的订单
					</a>
                </li>
                <li class="spacer"></li>
                <li class="dropdown">
                    <a href="#">
						我的京东
					</a>
                    <i></i>
                </li>
                <li class="spacer"></li>
                <li>
                    <a href="#">
						京东会员
					</a>
                </li>
                <li class="spacer"></li>
                <li>
                    <a href="#">
						企业采购
					</a>
                </li>
                <li class="spacer"></li>
                <li class="dropdown">
                    <a href="#">
						客户服务
					</a>
                    <i></i>
                </li>
                <li class="spacer"></li>
                <li class="dropdown">
                    <a href="#">
						网站导航
					</a>
                    <i></i>
                </li>
                <li class="spacer"></li>
                <li style="position: relative; z-index: 1;">
                    <a href="#">
						手机京东
					</a>
                    <div class="erweima">
                        <img src="images/erweima.png" alt="">
                    </div>
                </li>
            </ul>
        </div>
    </div>
    <!-- 快捷导航模块制作结束 -->
    <!-- header 部分 start -->
    <div class="header">
        <div class="w inner">
            <!-- logo 部分 -->
            <div class="logo">
                <h1>
                    <a href="#" title="京东网">京东</a>
                </h1>
            </div>
            <!-- 搜索部分 -->
            <div class="search">
                <input type="text" value="单反相机">
                <button>
			 		<i></i>
			 	</button>
                <em></em>
            </div>
            <!-- 热词部分 -->
            <div class="hotwords">
                <a href="#" class="style-red">学生专享</a>
                <a href="#">300减160</a>
                <a href="#">七折返场</a>
                <a href="#">骑行运动</a>
                <a href="#">家电榜单</a>
                <a href="#">无损播放器</a>
                <a href="#">汽车脚垫</a>
                <a href="#">巧克力</a>
                <a href="#">铝合金门窗</a>
            </div>

            <div class="myCar">
                <i></i>
                <a href="#">我的购物车</a>
                <s>0</s>
            </div>

            <div class="computer">
                <a href="#">
                    <img src="images/computer.jpg" height="40" width="190" alt="">
                </a>
            </div>

            <div class="navitems">
                <ul>
                    <li><a href="#">秒杀</a></li>
                    <li><a href="#">优惠券</a></li>
                    <li><a href="#">闪购</a></li>
                    <li><a href="#">拍卖</a></li>
                </ul>
                <div class="spacer"></div>
                <ul>
                    <li><a href="#">京东服饰</a></li>
                    <li><a href="#">京东超市</a></li>
                    <li><a href="#">生鲜</a></li>
                    <li><a href="#">全球购</a></li>
                </ul>
                <div class="spacer"></div>
                <ul>
                    <li><a href="#">京东金融</a></li>

                </ul>
            </div>
        </div>
    </div>

    <div class="jd">
        <div class="w jd-inner">
            <div class="jd-clo1">
                <ul>
                    <li><a href="#">家用电器</a></li>
                    <li>
                        <a href="#">手机</a>
                        <span>/</span>
                        <a href="#">运营商</a>
                        <span>/</span>
                        <a href="#">数码</a>
                    </li>
                    <li>
                        <a href="#">电脑</a>
                        <span>/</span>
                        <a href="#">运营商</a>
                        <span>/</span>
                        <a href="#">数码</a>
                    </li>
                    <li>
                        <a href="#">手机</a>
                        <span>/</span>
                        <a href="#">运营商</a>
                        <span>/</span>
                        <a href="#">数码</a>
                    </li>
                    <li>
                        <a href="#">手机</a>
                        <span>/</span>
                        <a href="#">运营商</a>
                        <span>/</span>
                        <a href="#">数码</a>
                    </li>
                    <li>
                        <a href="#">手机</a>
                        <span>/</span>
                        <a href="#">运营商</a>
                        <span>/</span>
                        <a href="#">数码</a>
                    </li>
                    <li>
                        <a href="#">手机</a>
                        <span>/</span>
                        <a href="#">运营商</a>
                        <span>/</span>
                        <a href="#">数码</a>
                    </li>
                    <li>
                        <a href="#">手机</a>
                        <span>/</span>
                        <a href="#">运营商</a>
                        <span>/</span>
                        <a href="#">数码</a>
                    </li>
                    <li>
                        <a href="#">手机</a>
                        <span>/</span>
                        <a href="#">运营商</a>
                        <span>/</span>
                        <a href="#">数码</a>
                    </li>
                    <li>
                        <a href="#">手机</a>
                        <span>/</span>
                        <a href="#">运营商</a>
                        <span>/</span>
                        <a href="#">数码</a>
                    </li>
                    <li>
                        <a href="#">手机</a>
                        <span>/</span>
                        <a href="#">运营商</a>
                        <span>/</span>
                        <a href="#">数码</a>
                    </li>
                    <li>
                        <a href="#">手机</a>
                        <span>/</span>
                        <a href="#">运营商</a>
                        <span>/</span>
                        <a href="#">数码</a>
                    </li>
                    <li>
                        <a href="#">手机</a>
                        <span>/</span>
                        <a href="#">运营商</a>
                        <span>/</span>
                        <a href="#">数码</a>
                    </li>
                    <li>
                        <a href="#">手机</a>
                        <span>/</span>
                        <a href="#">运营商</a>
                        <span>/</span>
                        <a href="#">数码</a>
                    </li>
                    <li>
                        <a href="#">手机</a>
                        <span>/</span>
                        <a href="#">运营商</a>
                        <span>/</span>
                        <a href="#">数码</a>
                    </li>
                    <li>
                        <a href="#">手机</a>
                        <span>/</span>
                        <a href="#">运营商</a>
                        <span>/</span>
                        <a href="#">数码</a>
                    </li>
                </ul>
            </div>
            <div class="jd-clo2">
                <div class="jd-clo2-hd">

                    <a href="#" class="arr-l"></a>
                    <a href="#" class="arr-r"></a>

                    <ol>
                        <li class="current"></li>
                        <li></li>
                        <li></li>
                        <li></li>
                        <li></li>
                        <li></li>
                        <li></li>
                        <li></li>
                    </ol>


                    <ul>
                        <li>
                            <a href="#"><img src="images/banner.jpg"></a>
                        </li>
                    </ul>

                </div>
                <div class="jd-clo2-bd">
                    <div class="firstPic">
                        <img src="images/pic1.jpg">
                    </div>
                    <div>
                        <img src="images/pic2.jpg">
                    </div>
                </div>
            </div>
            <div class="jd-clo3">
                <div class="user">
                    <div class="user-info">
                        Hi, 欢迎来到京东! <br>
                        <a href="#">登录</a>
                        <a href="#">注册</a>
                        <a href="#" class="info-img">
                            <img src="images/no_login.jpg">
                        </a>
                    </div>
                    <div class="user-profit">
                        <a href="#">新人福利</a>
                        <a href="#">PLUS会员</a>
                    </div>
                </div>
                <div class="news">
                    <div class="tab-hd">
                        <a href="javascript:;" class="cuxiao">促销</a>
                        <a href="javascript:;">公告</a>
                        <a href="#" class="more1">更多</a>
                        <div class="line"></div>
                    </div>
                    <div class="tab-bd">
                        <ul>
                            <li><a href="#">蓄电池专场下单立减100元</a></li>
                            <li><a href="#">蓄电池专场下单立减100元</a></li>
                            <li><a href="#">蓄电池专场下单立减100元</a></li>
                            <li><a href="#">蓄电池专场下单立减100元</a></li>
                        </ul>

                    </div>
                </div>
                <div class="jd-service">
                    <ul>
                        <li>
                            <a href="#">
                                <i></i>
                                <p>机票</p>
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <i></i>
                                <p>机票</p>
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <i></i>
                                <p>机票</p>
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <i></i>
                                <p>机票</p>
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <i></i>
                                <p>机票</p>
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <i></i>
                                <p>机票</p>
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <i></i>
                                <p>机票</p>
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <i></i>
                                <p>机票</p>
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <i></i>
                                <p>机票</p>
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <i></i>
                                <p>机票</p>
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <i></i>
                                <p>机票</p>
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <i></i>
                                <p>机票</p>
                            </a>
                        </li>

                    </ul>
                </div>
            </div>
        </div>

        <div class="ad">
            <a href="#"></a>
        </div>
    </div>



    <div class="footer">

        <div class="footer-service">

            <div class="w footer-service-inner">
                <ul class="clearfix">
                    <li>
                        <div class="service_unit">
                            <h5></h5>
                            <p>品类齐全,轻松购物</p>
                        </div>
                    </li>

                    <li>
                        <div class="service_unit">
                            <h5 class="kuai"></h5>
                            <p>多仓直发,极速配送</p>
                        </div>
                    </li>

                    <li>
                        <div class="service_unit">
                            <h5 class="hao"></h5>
                            <p>正品行货,精致服务</p>
                        </div>
                    </li>

                    <li>
                        <div class="service_unit">
                            <h5 class="sheng"></h5>
                            <p>天天低价,畅选无忧</p>
                        </div>
                    </li>

                </ul>
            </div>

        </div>

        <div class="w help">
            <dl>
                <dt>购物指南</dt>
                <dd><a href="#">购物流程</a></dd>
                <dd><a href="#">会员介绍</a></dd>
                <dd><a href="#">生活旅行</a></dd>
                <dd><a href="#">常见问题</a></dd>
                <dd><a href="#">大家电</a></dd>
                <dd><a href="#">联系客服</a></dd>
            </dl>
            <dl>
                <dt>购物指南</dt>
                <dd><a href="#">购物流程</a></dd>
                <dd><a href="#">会员介绍</a></dd>
                <dd><a href="#">生活旅行</a></dd>
                <dd><a href="#">常见问题</a></dd>
                <dd><a href="#">大家电</a></dd>
                <dd><a href="#">联系客服</a></dd>
            </dl>
            <dl>
                <dt>购物指南</dt>
                <dd><a href="#">购物流程</a></dd>
                <dd><a href="#">会员介绍</a></dd>
                <dd><a href="#">生活旅行</a></dd>
                <dd><a href="#">常见问题</a></dd>
                <dd><a href="#">大家电</a></dd>
                <dd><a href="#">联系客服</a></dd>
            </dl>
            <dl>
                <dt>购物指南</dt>
                <dd><a href="#">购物流程</a></dd>
                <dd><a href="#">会员介绍</a></dd>
                <dd><a href="#">生活旅行</a></dd>
                <dd><a href="#">常见问题</a></dd>
                <dd><a href="#">大家电</a></dd>
                <dd><a href="#">联系客服</a></dd>
            </dl>
            <dl>
                <dt>购物指南</dt>
                <dd><a href="#">购物流程</a></dd>
                <dd><a href="#">会员介绍</a></dd>
                <dd><a href="#">生活旅行</a></dd>
                <dd><a href="#">常见问题</a></dd>
                <dd><a href="#">大家电</a></dd>
                <dd><a href="#">联系客服</a></dd>
            </dl>
            <dl class="cover">
                <dt>京东自营覆盖区县</dt>
                <dd class="info">京东已向全国2661个区县提供自营配送服务,支持货到付款、POS机刷卡和售后上门服务。
                </dd>
                <dd class="more"><a href="#">查看详情 &gt; </a></dd>

            </dl>
        </div>

        <div class="w copyright">
            <div class="links">
                <a href="#">关于我们</a>
                <span>|</span>
                <a href="#">关于我们</a>
                <span>|</span>
                <a href="#">关于我们</a>
                <span>|</span>
                <a href="#">关于我们</a>
                <span>|</span>
                <a href="#">关于我们</a>
                <span>|</span>
                <a href="#">关于我们</a>
                <span>|</span>
                <a href="#">关于我们</a>
                <span>|</span>
                <a href="#">关于我们</a>
                <span>|</span>
                <a href="#">关于我们</a>
                <span>|</span>
                <a href="#">关于我们</a>
                <span>|</span>
                <a href="#">关于我们</a>
                <span>|</span>

                <a href="#">English</a>
                <span>|</span>
                <a href="#">Site</a>
                <span>|</span>
                <a href="#">Media &amp; IR</a>
                <span>|</span>
            </div>

            <div class="c-info">
                <p>京公网安备 11000002000088号|京ICP证070359号|互联网药品信息服务资格证编号(京)-经营性-2014-0008|新出发京零 字第大120007号</p>
                <p>互联网出版许可证编号新出网证(京)字150号|出版物经营许可证|网络文化经营许可证京网文[2014]2148-348号|违法和不良信息举报电话:4006561155</p>
                <p>Copyright © 2004 - 2017 京东JD.com 版权所有|消费者维权热线:4006067733经营证照</p>
                <p>京东旗下网站:京东支付|京东云</p>
            </div>
            <div class="tupian">
                <a href="#"></a>
                <a href="#" class="kexin"></a>
                <a href="#"></a>
                <a href="#"></a>
                <a href="#"></a>
                <a href="#"></a>
            </div>
        </div>

    </div>


</body>

下面是css样式

base.css
.w {
    width: 1190px;
    margin: auto;
}

.fr {
    float: right;
}

.fl {
    float: left;
}

.style-red {
    color: #f10215!important;
}

li {
    list-style: none;
}

ul {
    margin: 0;
    padding: 0;
}

input,
button {
    padding: 0;
    border: 0;
}

a {
    text-decoration: none;
}

img {
    vertical-align: top;
}

.clearfix:before,
.clearfix:after {
    content: "";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

@font-face {
    font-family: 'icomoon';
    src: url('../fonts/icomoon.eot?axvffw');
    src: url('../fonts/icomoon.eot?axvffw#iefix') format('embedded-opentype'), url('../fonts/icomoon.ttf?axvffw') format('truetype'), url('../fonts/icomoon.woff?axvffw') format('woff'), url('../fonts/icomoon.svg?axvffw#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
}

body {
    background-color: #F6F6F6;
}

.J_event {
    background-color: #000;
}

.J_event a {
    display: block;
    height: 80px;
    background: url(../images/top.jpg) no-repeat;
    position: relative;
}

.J_event a i {
    width: 20px;
    height: 20px;
    position: absolute;
    right: 0;
    top: 5px;
    font-family: "icomoon";
    font-style: normal;
    text-align: center;
    line-height: 20px;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
}

.shortcut {
    height: 30px;
    line-height: 30px;
    background-color: #E3E4E5;
    border-bottom: 1px solid #DDDDDD;
    color: #9D9D9D;
    font-size: 12px;
}

.shortcut a {
    color: #9D9D9D;
    font-size: 12px;
    text-decoration: none;
}

.shortcut a:hover {
    color: #c81623;
}

.pos {
    font-family: "icomoon";
    font-style: normal;
    font-size: 14px;
    color: #f10215;
}

.shortcut .fl li {
    margin-left: 200px;
    height: 30px;
    overflow: hidden;
}

.shortcut .fr li {
    float: left;
}

.spacer {
    width: 1px;
    height: 10px;
    background-color: #ccc;
    margin: 10px 10px 0;
}

.dropdown {
    padding-right: 15px;
    position: relative;
}

.dropdown i {
    font-family: "icomoon";
    font-style: normal;
    font-size: 16px;
    position: absolute;
    right: -2px;
    top: -2px;
}

.erweima {
    width: 60px;
    height: 60px;
    border: 1px solid #ccc;
    padding: 3px;
    position: absolute;
    left: -8px;
    top: 35px;
}


/*  header 部分 start  */

.header {
    height: 140px;
}

.inner {
    height: 140px;
    /* background-color: pink; */
    position: relative;
}


/*  header 部分 end  */


/* logo模块 */

.logo {
    width: 190px;
    height: 170px;
    position: absolute;
    top: -30px;
    left: 0;
    background-color: purple;
    box-shadow: 0 -12px 10px rgba(0, 0, 0, .2);
}

.logo h1 {
    margin: 0;
}

.logo a {
    display: block;
    width: 190px;
    height: 170px;
    background: url(../images/logo.jpg) no-repeat;
    text-indent: -99999px;
    overflow: hidden;
}

.search {
    width: 550px;
    height: 35px;
    position: absolute;
    top: 25px;
    left: 320px;
}

.search input {
    width: 493px;
    height: 33px;
    border: 1px solid #F10215;
    padding-left: 5px;
    outline: none;
    color: #989898;
    float: left;
}

.search button {
    width: 50px;
    height: 35px;
    background-color: #F10215;
    float: left;
    cursor: pointer;
    outline: none;
}

.search i {
    font-family: "icomoon";
    color: #fff;
    font-style: normal;
    font-size: 16px;
}

.search em {
    position: absolute;
    top: 10px;
    right: 65px;
    width: 19px;
    height: 15px;
    cursor: pointer;
    background: url(../images/sprite-search.png) no-repeat;
}

.search em:hover {
    background-position: -30px 0;
}

.hotwords {
    position: absolute;
    top: 70px;
    left: 320px;
}

.hotwords a {
    color: #9E9B99;
    font-size: 12px;
}

.hotwords a:hover {
    color: #f10215;
}

.myCar {
    width: 188px;
    height: 33px;
    border: 1px solid #ccc;
    position: absolute;
    top: 25px;
    right: 100px;
    text-align: center;
    line-height: 33px;
}

.myCar a {
    font-size: 12px;
    color: #f10215;
}

.myCar i {
    font-family: "icomoon";
    font-style: normal;
    color: #f10215;
    margin-right: 3px;
}

.myCar s {
    position: absolute;
    top: 5px;
    left: 140px;
    text-decoration: none;
    background-color: #f10215;
    height: 16px;
    line-height: 16px;
    font-size: 12px;
    padding: 0 3px;
    border-radius: 7px;
    color: #fff;
}

.computer {
    position: absolute;
    right: 0;
    bottom: 10px;
}

.navitems {
    position: absolute;
    left: 200px;
    bottom: 0;
}

.navitems ul {
    float: left;
}

.navitems ul li {
    float: left;
    margin-left: 30px;
}

.navitems li a {
    font-size: 16px;
    color: #555A5F;
    font-weight: 700;
    height: 40px;
    line-height: 40px;
    display: block;
}

.navitems li a:hover {
    color: #f10215;
}

.navitems .spacer {
    float: left;
    margin-top: 15px;
    margin-left: 20px;
    margin-right: -10px;
}

.footer {
    height: 560px;
    background-color: #EAEAEA;
}

.footer-service {
    border-bottom: 1px solid #DEDEDE;
}

.footer-service-inner {
    padding: 30px 0;
}

.footer-service-inner li {
    float: left;
    width: 297px;
    height: 42px;
}

.service_unit {
    width: 225px;
    height: 42px;
    margin: 0 auto;
    position: relative;
}

.service_unit h5 {
    width: 36px;
    height: 42px;
    position: absolute;
    top: 0;
    left: 0;
    background: url(../images/ico_service.png) no-repeat;
    text-indent: -999px;
    overflow: hidden;
}

.service_unit p {
    line-height: 42px;
    margin-left: 45px;
    font-size: 18px;
    font-weight: 700;
}

.service_unit .kuai {
    background-position: 0 -44px;
}

.service_unit .hao {
    background-position: 0 -86px;
}

.service_unit .sheng {
    background-position: 0 -128px;
}

.help {
    height: 180px;
    /* background-color: pink; */
    padding-top: 20px;
}

.help dl {
    float: left;
    width: 195px;
}

.help dt {
    font-size: 14px;
    font-weight: 700;
    color: #666;
    height: 30px;
}

.help dd {
    height: 22px;
}

.help dd a {
    color: #727272;
    font-size: 12px;
}

.help dd a:hover {
    color: #f10215;
}

.help .cover {
    float: right;
    width: 207px;
    height: 150px;
    background: url(../images/ico_footer.png) no-repeat;
}

.cover dt {
    text-align: center;
}

.help .info {
    width: 175px;
    height: 50px;
    font-size: 12px;
    margin-top: 5px;
    margin-left: 10px;
    line-height: 18px;
    color: #727272;
}

.more {
    text-align: right;
    padding-right: 10px;
}


/* 版权模块 */

.copyright {
    border-top: 1px solid #ccc;
    padding-top: 15px;
}

.links {
    text-align: center;
}

.links a {
    color: #727272;
    font-size: 12px;
}

.links span {
    font-size: 12px;
    color: #D4CDCD;
    margin: 0 6px;
}

.c-info {
    font-size: 12px;
    color: #9E9E9B;
    text-align: center;
    line-height: 20px;
    margin-top: 10px;
}

.tupian {
    text-align: center;
    margin-top: 10px;
}

.tupian a {
    width: 103px;
    height: 32px;
    display: inline-block;
    background: url(../images/ico_footer.png) no-repeat 0 -151px;
}

.tupian .kexin {
    background-position: -104px -151px;
}
index.css
.jd {
    position: relative;
}

.jd-inner {
    height: 480px;
    z-index: 999;
    position: relative;
}

.ad {
    height: 480px;
    background: url(../images/bg.png) no-repeat top center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.ad a {
    display: block;
    height: 100%;
}

.jd-clo1 {
    width: 190px;
    height: 465px;
    background-color: #6E6568;
    float: left;
    padding-top: 15px;
}

.jd-clo1 li {
    padding-left: 10px;
    height: 28px;
    line-height: 28px;
}

.jd-clo1 li:hover {
    background-color: #999395;
}

.jd-clo1 li a {
    color: #fff;
    font-size: 14px;
}

.jd-clo1 li span {
    color: #fff;
    font-size: 12px;
}

.jd-clo2 {
    width: 790px;
    height: 480px;
    float: left;
    margin-left: 10px;
}

.jd-clo2-hd {
    height: 340px;
    margin-bottom: 10px;
    position: relative;
}

.jd-clo2-bd div {
    width: 390px;
    height: 130px;
    float: left;
}

.jd-clo2-bd div img {
    width: 100%;
}

.firstPic {
    margin-right: 10px;
}

.arr-l,
.arr-r {
    position: absolute;
    top: 50%;
    margin-top: -30px;
    width: 30px;
    height: 60px;
    background: rgba(0, 0, 0, 0.3);
    font-family: "icomoon";
    color: #fff;
    text-align: center;
    line-height: 60px;
    font-size: 25px;
}

.arr-l {
    left: 0;
}

.arr-r {
    right: 0;
}

.jd-clo2-hd ol {
    position: absolute;
    bottom: 20px;
    left: 50%;
    margin-left: -90px;
    width: 180px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.jd-clo2-hd ol li {
    width: 12px;
    height: 12px;
    background-color: #fff;
    border-radius: 50%;
    float: left;
    margin: 4px 5px;
    cursor: pointer;
}

.jd-clo2-hd .current {
    background-color: #f10215;
}

.jd-clo3 {
    width: 190px;
    height: 480px;
    float: right;
}

.jd-clo3 a {
    font-size: 12px;
    color: #747474;
}

.user {
    height: 95px;
    background-color: pink;
    padding: 20px 15px 0;
}

.user-info {
    height: 40px;
    padding-left: 54px;
    font-size: 12px;
    color: #747474;
    line-height: 22px;
    position: relative;
}

.user-info a {
    font-size: 12px;
    color: #747474;
}

.user-info a:hover {
    color: #f10215;
}

.info-img {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    overflow: hidden;
}

.info-img img {
    width: 100%;
    height: auto;

}

.user-profit {
    margin-top: 14px;
}

.user-profit a {
    width: 70px;
    height: 20px;
    border: 2px solid #f10215;
    display: inline-block;
    font-size: 12px;
    color: #f10215;
    text-align: center;
    line-height: 20px;
    margin-right: 4px;
}

.user-profit a:hover {
    background-color: #f10215;
    color: #fff;
}

.news {
    height: 149px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 5px 15px 0;
}

.tab-hd {
    border-bottom: 1px solid #ccc;
    padding: 3px 0;
    position: relative;
}

.tab-hd a {
    margin: 0 4px;
}

.cuxiao {
    border-right: 1px solid #ccc;
    padding-right: 10px;
}

.news .more1 {
    position: absolute;
    top: 6px;
    right: 0;
}

.line {
    width: 28px;
    height: 2px;
    background-color: #f10215;
    position: absolute;
    bottom: -1px;
    left: 0;
}

.tab-bd {
    margin-top: 10px;
}

.tab-bd li {
    height: 23px;
    line-height: 23px;
}

.jd-service {
    height: 209px;
    width: 190px;
    overflow: hidden;
}

.jd-service ul {
    width: 195px;
}

.jd-service li {
    width: 47px;
    height: 69px;
    float: left;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.jd-service li a {
    width: 100%;
    height: 100%;
    display: block;
}

.jd-service i {
    display: block;
    width: 24px;
    height: 24px;
    margin: 15px auto 8px;
    background: url(../images/sprite_fs@1x.png) no-repeat;
}

.jd-service p {
    text-align: center;
}
normalize.css
html {
    line-height: 1.15;
    /* 1 */
    -ms-text-size-adjust: 100%;
    /* 2 */
    -webkit-text-size-adjust: 100%;
    /* 2 */
}

body {
    margin: 0;
}

article,
aside,
footer,
header,
nav,
section {
    display: block;
}

h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

figcaption,
figure,
main {
    display: block;
}

figure {
    margin: 1em 40px;
}

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}

pre {
    font-family: monospace, monospace;
    font-size: 1em;
}

a {
    background-color: transparent;
    -webkit-text-decoration-skip: objects;
}

abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted;
}

b,
strong {
    font-weight: inherit;
}

b,
strong {
    font-weight: bolder;
}

code,
kbd,
samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

dfn {
    font-style: italic;
}

mark {
    background-color: #ff0;
    color: #000;
}

small {
    font-size: 80%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

audio,
video {
    display: inline-block;
}

audio:not([controls]) {
    display: none;
    height: 0;
}

img {
    border-style: none;
}

svg:not(:root) {
    overflow: hidden;
}

button,
input,
optgroup,
select,
textarea {
    font-family: sans-serif;
    line-height: 1.15;
    margin: 0;
}

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

button,
html [type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

fieldset {
    padding: 0.35em 0.75em 0.625em;
}

legend {
    box-sizing: border-box;
    display: table;
    max-width: 100%;
    white-space: normal;
}

progress {
    display: inline-block;
    vertical-align: baseline;
}

textarea {
    overflow: auto;
}

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

details,
menu {
    display: block;
}

summary {
    display: list-item;
}

canvas {
    display: inline-block;
}

template {
    display: none;
}

[hidden] {
    display: none;
}

图片如下:
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
请添加图片描述
请添加图片描述
请添加图片描述
请添加图片描述
请添加图片描述
请添加图片描述
请添加图片描述
请添加图片描述
请添加图片描述
代码运行如下:
在这里插入图片描述

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值