text-indent
(文本缩进)移到盒子外面(text-indent:-9999px
),然后overflow:hidden
(溢出隐藏和清除浮动)。(淘宝的做法)font-size: 0;
就看不到文字了。(京东的做法)/* 把我们所有标签的内外边距清零 */
* {
margin: 0;
padding: 0;
/* CSS3盒子模型 */
box-sizing: border-box;
}
/* em 和 i 斜体的文字不倾斜 */
em,
i {
font-style: normal;
}
/* 去掉li 的小圆点 */
li {
list-style: none;
}
img {
/* border 0 照顾低版本浏览器 如果 图片外面包含了链接会有边框的问题 */
border: 0;
/* 取消图片底侧有空白缝隙的问题 */
vertical-align: middle;
}
button {
/* 当我们鼠标经过button 按钮的时候,鼠标变成小手 */
cursor: pointer;
}
a {
color: #666;
text-decoration: none;
}
a:hover {
color: #c81623;
}
button,
input {
/* "\5B8B\4F53" 就是宋体的意思 这样浏览器兼容性比较好 */
font-family: Microsoft YaHei, Heiti SC, tahoma, arial, Hiragino Sans GB, "\5B8B\4F53", sans-serif;
/* 默认有灰色边框,我们需要手动去掉 */
border: 0;
outline: none;
}
body {
/* CSS3 抗锯齿形 让文字显示的更加清晰 */
-webkit-font-smoothing: antialiased;
background-color: #fff;
font: 12px/1.5 Microsoft YaHei, Heiti SC, tahoma, arial, Hiragino Sans GB, "\5B8B\4F53", sans-serif;
color: #666;
}
.hide,
.none {
display: none;
}
/* 清除浮动 */
.clearfix:after {
visibility: hidden;
clear: both;
display: block;
content: ".";
height: 0;
}
.clearfix {
*zoom: 1;
}
/* 声明字体图标 这里一定要注意路径的变化 */
@font-face {
font-family: "iconfont"; /* Project id 3740750 */
src: url('../fonts/iconfont.woff2?t=1667895447697') format('woff2'),
url('../fonts/iconfont.woff?t=1667895447697') format('woff'),
url('../fonts/iconfont.ttf?t=1667895447697') format('truetype');
}
.iconfont {
font-family: "iconfont" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* 版心 */
.w {
width: 1200px;
/* 居中对齐 */
margin: 0 auto;
}
/* 左浮动 */
.fl {
float: left;
}
/* 右浮动 */
.fr {
float: right;
}
/* 字色变红 */
.style_red {
color: #c81623;
}
/* 快捷导航模块 */
.shortcut {
height: 31px;
line-height: 31px;
background-color: #f1f1f1;
}
.shortcut ul li {
float: left;
}
/* 筛选选出偶数li */
.shortcut .fr ul li:nth-child(even) {
width: 1px;
height: 12px;
background-color: #666;
margin: 9px 15px 0;
}
.arrow-icon::after {
content: '';
font-family: "iconfont";
margin-left: 6px;
}
/* header头部模块 */
.header {
/* 父相 */
position: relative;
height: 105px;
}
.logo {
/* 子绝 */
position: absolute;
top: 25px;
width: 254px;
height: 65px;
}
.logo a{
display: block;
width: 254px;
height: 65px;
background: url(../images/logo.png) no-repeat;
/* 京东做法 */
font-size: 0;
/* 淘宝做法
text-indent: -9999px;
overflow: hidden; */
}
.search {
/* 子绝 */
position: absolute;
left: 346px;
top: 25px;
width: 538px;
height: 36px;
border: 2px solid #b1191a;
}
.search input {
/* 因为input和button是行内元素,期间有空隙,要想消除空隙,则让input和button浮动 */
float: left;
width: 454px;
height: 32px;
padding-left: 10px;
}
.search button {
float: left;
width: 80px;
height: 32px;
background-color: #b1191a;
font-size: 16px;
color: #fff;
}
.hotwords {
position: absolute;
top: 66px;
left: 346px;
}
.hotwords a {
margin: 0 10px;
}
.shopcar {
/* 子绝 */
position: absolute;
top: 25px;
right: 60px;
width: 140px;
height: 35px;
line-height: 35px;
text-align: center;
border: 1px solid #dfdfdf;
background-color: #f7f7f7;
}
.shopcar::before {
content: '\eeba';
font-family: "iconfont";
margin-right: 3px;
color: #b1191a;
font-size: 13px;
}
.shopcar::after {
content: '\e9ed';
font-family: "iconfont";
margin-left: 10px;
}
.count {
/* 子绝 */
position: absolute;
top: -5px;
/* 不写right是因为当加入购物车数量很多时,靠右边移 */
left: 105px;
height: 14px;
/* 如果不写,则会继承父亲的行高35px,出现字体显示不全的问题,故重新设置行高 */
line-height: 14px;
color: #fff;
background-color: #b1191a;
padding: 0 5px;
border-radius: 7px 7px 7px 0;
}
/* nav导航栏模块 */
.nav {
height: 47px;
border-bottom: 2px solid #b1191a;
}
.nav .dropdown {
float: left;
width: 210px;
height: 45px;
background-color: #b1191a;
}
.nav .navitems {
float: left;
}
.dropdown .dt {
width: 100%;
height: 100%;
color: #fff;
text-align: center;
line-height: 45px;
font-size: 16px;
}
.dropdown .dd {
width: 210px;
height: 465px;
color: #fff;
background-color: #c81623;
margin-top: 2px;
}
.dropdown .dd ul li {
position: relative;
height: 31px;
line-height: 31px;
margin-left: 2px;
padding-left: 10px;
}
.dropdown .dd ul li:hover {
background-color: #fff;
}
.dropdown .dd ul li::after {
position: absolute;
top: 1px;
right: 10px;
content:'\e9ed';
font-family: "iconfont";
color: #fff;
font-size: 14px;
}
.dropdown .dd ul li a {
font-size: 14px;
color: #fff;
}
.dropdown .dd ul li:hover a {
color: #c81623;
}
.navitems ul li {
float: left;
}
.navitems ul li a {
display: block;
height: 45px;
line-height: 45px;
font-size: 16px;
padding: 0 25px;
}
/* footer底部模块 */
.footer {
height: 415px;
background-color: #f5f5f5;
padding-top: 30px;
}
.mod_service {
height: 80px;
border-bottom: 1px solid #ccc;
}
.mod_service ul li {
float: left;
width: 240px;
height: 50px;
padding-left: 35px;
}
.mod_service ul li h5 {
float: left;
width: 50px;
height: 50px;
margin-right: 8px;
}
.mod_service ul li:first-child h5 {
background: url(../images/icons.png) no-repeat -252px -3px;
}
.mod_service ul li:nth-child(2) h5 {
background: url(../images/icons.png) no-repeat -254px -53px;
}
.mod_service ul li:nth-child(3) h5 {
background: url(../images/icons.png) no-repeat -256px -105px;
}
.mod_service ul li:nth-child(4) h5 {
background: url(../images/icons.png) no-repeat -257px -156px;
}
.mod_service ul li:last-child h5 {
background: url(../images/icons.png) no-repeat -256px -208px;
}
.service_txt h4 {
font-size: 14px;
margin-top: 3px;
}
.service_txt p {
font-size: 12px;
}
.mod_help {
height: 185px;
border-bottom: 1px solid #ccc;
padding-top: 20px;
padding-left: 50px;
}
.mod_help dl {
float: left;
width: 200px;
}
.mod_help dl:last-child {
width: 110px;
text-align: center;
}
.mod_help dl dt {
font-size: 16px;
margin-bottom: 10px;
}
.mod_copyright {
text-align: center;
padding-top: 20px;
}
.links {
margin-bottom: 15px;
}
.links a {
margin: 0 3px;
}
.copyright {
line-height: 20px;
}
DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>小王优品铺-正品低价、品质保障!title>
<meta name="description"content="小王优品铺-专业的综合网上购物商城,销售家电、数码通讯、电脑、家居百货、服装服饰、母婴、图书、食品等数万个品牌优质商品。便捷、诚信的服务,为您提供愉悦的网上购物体验!" />
<meta name="keywords" content="网上购物,网上商城手机,笔记本,电脑,MP3,CD,VCD,DV,相机,数码,配件,手表存储卡,京东" />
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/common.css">
<link rel="stylesheet" href="css/index.css">
head>
<body>
<section class="shortcut">
<div class="w">
<div class="fl">
<ul>
<li>小王优品铺欢迎您! li>
<li>
<a href="#">请登录a> <a href="register.html" class="style_red">免费注册a>
li>
ul>
div>
<div class="fr">
<ul>
<li>我的订单li>
<li>li>
<li class="arrow-icon">我的优品铺li>
<li>li>
<li>优品铺会员li>
<li>li>
<li>企业采购li>
<li>li>
<li class="arrow-icon">关注优品铺li>
<li>li>
<li class="arrow-icon">客户服务li>
<li>li>
<li class="arrow-icon">网站导航li>
ul>
div>
div>
section>
<header class="header w">
<div class="logo">
<h1>
<a href="#index.html" title="小王优品铺">小王优品铺a>
h1>
div>
<div class="search">
<input type="search" name="" id="" placeholder="语言开发">
<button>搜索button>
div>
<div class="hotwords">
<a href="" class="style_red">优惠购首发a>
<a href="">亿元优惠a>
<a href="">9.9元团购a>
<a href="">每满99减30a>
<a href="">办公用品a>
<a href="">电脑a>
<a href="">通信a>
div>
<div class="shopcar">
我的购物车
<i class="count">8i>
div>
header>
<nav class="nav">
<div class="w">
<div class="dropdown">
<div class="dt">全部商品分类div>
<div class="dd">
<ul>
<li><a href="list.html">家用电器a>li>
<li><a href="list.html">手机a>、<a href="list.html">数码a>、<a href="list.html">通信a>li>
<li><a href="list.html">电脑a>、<a href="list.html">办公a>li>
<li><a href="list.html">家居a>、<a href="list.html">家具a>、<a href="list.html">家装a>、<a href="list.html">厨具a>li>
<li><a href="list.html">男装a>、<a href="list.html">女装a>、<a href="list.html">童装a>、<a href="list.html">内衣a>li>
<li><a href="list.html">个护化妆a>、<a href="list.html">清洁用品a>、<a href="list.html">宠物a>li>
<li><a href="list.html">鞋靴a>、<a href="list.html">箱包a>、<a href="list.html">珠宝a>、<a href="list.html">奢侈品a>li>
<li><a href="list.html">运动户外a>、<a href="list.html">钟表a>li>
<li><a href="list.html">汽车a>、<a href="list.html">汽车用品a>li>
<li><a href="list.html">母婴a>、<a href="list.html">玩具乐器a>li>
<li><a href="list.html">食品a>、<a href="list.html">酒类a>、<a href="list.html">生鲜a>、<a href="list.html">特产a>li>
<li><a href="list.html">医药保健a>li>
<li><a href="list.html">图书a>、<a href="list.html">音像a>、<a href="list.html">电子书a>li>
<li><a href="list.html">彩票a>、<a href="list.html">旅行a>、<a href="list.html">充值a>、<a href="list.html">票务a>li>
<li><a href="list.html">理财a>、<a href="list.html">众筹a>、<a href="list.html">白条a>、<a href="list.html">保险a>li>
ul>
div>
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>
<li><a href="#">闪购a>li>
<li><a href="#">团购a>li>
<li><a href="#">拍卖a>li>
<li><a href="#">有趣a>li>
ul>
div>
div>
nav>
<div class="w">
<div class="main">
<div class="focus">
<ul>
<li>
<img src="upload/focus1.png" alt="">
li>
ul>
div>
<div class="newsflash">
<div class="news">
<div class="news-hd">
<h5>优品铺快报h5>
<a href="#" class="more">更多a>
div>
<div class="news-bd">
<ul>
<li><a href="#"><strong>[特惠]strong> 备战开学季 全民半价购数码啦啦啦a>li>
<li><a href="#"><strong>[公告]strong> 优品铺稳占家电网购六成份额a>li>
<li><a href="#"><strong>[特惠]strong> 百元中秋全品类礼券限量领a>li>
<li><a href="#"><strong>[公告]strong> 上品优生鲜 享阳澄湖大闸蟹a>li>
<li><a href="#"><strong>[特惠]strong> 每日享折扣优品 品质游a>li>
ul>
div>
div>
<div class="lifeservice">
<ul>
<li>
<i>i>
<p>话费p>
li>
<li>
<i>i>
<span class="jian"><img src="images/jian.png" alt="">span>
<p>机票p>
li>
<li>
<i>i>
<p>电影票p>
li>
<li>
<i>i>
<p>游戏p>
li>
<li>
<i>i>
<p>彩票p>
li>
<li>
<i>i>
<p>加油卡p>
li>
<li>
<i>i>
<p>酒店p>
li>
<li>
<i>i>
<p>火车票p>
li>
<li>
<i>i>
<p>众筹p>
li>
<li>
<i>i>
<p>理财p>
li>
<li>
<i>i>
<p>礼品卡p>
li>
<li>
<i>i>
<p>白条p>
li>
ul>
div>
<div class="bargain">
<img src="upload/bargain.png" alt="">
div>
div>
div>
div>
<div class="w recom">
<div class="recom-hd">
<img src="images/recom.png" alt="">
div>
<div class="recom-bd">
<ul>
<li><img src="upload/recom_01.jpg" alt="">li>
<li><img src="upload/recom_02.jpg" alt="">li>
<li><img src="upload/recom_03.jpg" alt="">li>
<li><img src="upload/recom_04.jpg" alt="">li>
ul>
div>
div>
<div class=" w guess">
<div class="guess-hd">
<h4>猜你喜欢h4>
<a href="#">换一批a>
div>
<div class="guess-bd">
<ul>
<li>
<a href="#">
<img src="upload/guess-bd1.png" alt="">
<p>阳光美包新款单肩包女包时尚子母包四件套女p>
<span class="price">¥116.00span>
a>
li>
<li>
<a href="#">
<img src="upload/guess-bd2.png" alt="">
<p>爱仕达 30CM炒锅不粘锅NWG8330E电磁炉炒p>
<span class="price">¥99.00span>
a>
li>
<li>
<a href="#">
<img src="upload/guess-bd3.png" alt="">
<p>捷波朗 <br/>(jabra)BOOSI劲步p>
<span class="price">¥245.00span>
a>
li>
<li>
<a href="#">
<img src="upload/guess-bd4.png" alt="">
<p>欧普 <br /> JYLZ08面板灯平板灯铝p>
<span class="price">¥238.00span>
a>
li>
<li>
<a href="#">
<img src="upload/guess-bd5.png" alt="">
<p>三星 <br />(G5500)移动联p>
<span class="price">¥6490.00span>
a>
li>
<li>
<a href="#">
<img src="upload/guess-bd6.png" alt="">
<p>韩国所望 <br /> 紧致湿润精华露400mlp>
<span class="price">¥649.00span>
a>
li>
ul>
div>
div>
<div class="w fun">
<h4>小王博客-有趣区h4>
<div class="interest">
<div class="interest-conver">
<img src="upload/interest.png" alt="">
div>
<div class="interest-things">
<h5>好物推荐h5>
<div class="thing1">
<a href="#"><img src="upload/thing1.jpg" alt="">a>
div>
<div class="interest-thing2">
<a href="#"><img src="upload/thing2.jpg" alt="">a>
div>
div>
<div class="interest-brands">
<h5>品牌小铺h5>
<div class="brand1">
<a href="#"><img src="upload/brand1.jpg" alt="">a>
div>
<div class="brand2">
<a href="#"><img src="upload/brand2.jpg" alt="">a>
div>
<div class="brand3">
<a href="#"><img src="upload/brand3.jpg" alt="">a>
div>
div>
<div class="interest-brandArea">
<ul>
<li><a href="#"><img src="upload/Area1.jpg" alt="">a>li>
<li><a href="#"><img src="upload/Area2.jpg" alt="">a>li>
<li><a href="#"><img src="upload/Area3.jpg" alt="">a>li>
<li><a href="#"><img src="upload/Area4.jpg" alt="">a>li>
<li><a href="#"><img src="upload/Area5.jpg" alt="">a>li>
<li><a href="#"><img src="upload/Area6.jpg" alt="">a>li>
<li><a href="#"><img src="upload/Area7.jpg" alt="">a>li>
<li><a href="#"><img src="upload/Area8.jpg" alt="">a>li>
<li><a href="#"><img src="upload/Area9.jpg" alt="">a>li>
<li><a href="#"><img src="upload/Area10.jpg" alt="">a>li>
<li><a href="#"><img src="upload/Area11.jpg" alt="">a>li>
<li><a href="#"><img src="upload/Area12.jpg" alt="">a>li>
<li><a href="#"><img src="upload/Area13.jpg" alt="">a>li>
<li><a href="#"><img src="upload/Area14.jpg" alt="">a>li>
ul>
div>
div>
div>
<div class="floor">
<div class="w jiadian">
<div class="box_hd">
<h3>家用电器h3>
<div class="tab_list">
<ul>
<li>
<a href="#" class="style_red">热门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>
div>
div>
<div class="box_bd">
<div class="tab_content">
<div class="tab_list_item">
<div class="col_210">
<ul>
<li><a href="#">节能补贴a>li>
<li><a href="#">4K电视a>li>
<li><a href="#">空气净化器a>li>
<li><a href="#">IH电饭煲a>li>
<li><a href="#">滚筒洗衣机a>li>
<li><a href="#">电热水器a>li>
ul>
<a href="#"><img src="upload/floor-1-1.jpg" alt="">a>
div>
<div class="col_329">
<a href="#">
<img src="upload/floor-1-2.jpg" alt="">
a>
div>
<div class="col_221">
<a href="#" class="bb"><img src="upload/floor-1-3.jpg" alt="">a>
<a href="#"><img src="upload/floor-1-4.jpg" alt="">a>
div>
<div class="col_221">
<a href="#"><img src="upload/floor-1-5.jpg" alt="">a>
div>
<div class="col_219">
<a href="#" class="bb"><img src="upload/floor-1-6.jpg" alt="">a>
<a href="#"><img src="upload/floor-1-7.jpg" alt="">a>
div>
div>
div>
div>
div>
<div class="w shouji">
<div class="box_hd">
<h3>手机通讯h3>
<div class="tab_list">
<ul>
<li>
<a href="#" class="style_red">热门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>
div>
div>
<div class="box_bd">
<div class="tab_content">
<div class="tab_list_item">
<div class="col_210">
<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>
ul>
<a href="#"><img src="upload/floor-2-1.jpg" alt="">a>
div>
<div class="col_329">
<a href="#">
<img src="upload/floor-2-2.jpg" alt="">
a>
div>
<div class="col_221">
<a href="#" class="bb"><img src="upload/floor-2-3.jpg" alt="">a>
<a href="#"><img src="upload/floor-2-4.jpg" alt="">a>
div>
<div class="col_221">
<a href="#"><img src="upload/floor-2-5.jpg" alt="">a>
div>
<div class="col_219">
<a href="#" class="bb"><img src="upload/floor-2-6.jpg" alt="">a>
<a href="#"><img src="upload/floor-2-7.jpg" alt="">a>
div>
div>
div>
div>
div>
<div class="w diannao">
<div class="box_hd">
<h3>电脑办公h3>
<div class="tab_list">
<ul>
<li>
<a href="#" class="style_red">热门a>|
li>
<li>
<a href="#">电脑/平板a>|
li>
<li>
<a href="#">潮流影音a>|
li>
<li>
<a href="#">智能/外设a>|
li>
<li>
<a href="#">DIY硬件a>|
li>
<li>
<a href="#">电竞游戏a>|
li>
<li>
<a href="#">办公/网络a>|
li>
<li>
<a href="#">文具电教a>|
li>
<li>
<a href="#">精选配件a>
li>
ul>
div>
div>
<div class="box_bd">
<div class="tab_content">
<div class="tab_list_item">
<div class="col_210">
<ul>
<li><a href="#">SSD硬盘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>
<a href="#"><img src="upload/floor-3-1.jpg" alt="">a>
div>
<div class="col_329">
<a href="#">
<img src="upload/floor-3-2.jpg" alt="">
a>
div>
<div class="col_221">
<a href="#" class="bb"><img src="upload/floor-3-3.jpg" alt="">a>
<a href="#"><img src="upload/floor-3-4.jpg" alt="">a>
div>
<div class="col_221">
<a href="#"><img src="upload/floor-3-5.jpg" alt="">a>
div>
<div class="col_219">
<a href="#" class="bb"><img src="upload/floor-3-6.jpg" alt="">a>
<a href="#"><img src="upload/floor-3-7.jpg" alt="">a>
div>
div>
div>
div>
div>
div>
<footer class="footer">
<div class="w">
<div class="mod_service">
<ul>
<li>
<h5>h5>
<div class="service_txt">
<h4>正品保障h4>
<p>正品保障,提供发票p>
div>
li>
<li>
<h5>h5>
<div class="service_txt">
<h4>急速物流h4>
<p>急速物流,急速送达p>
div>
li>
<li>
<h5>h5>
<div class="service_txt">
<h4>无忧售后h4>
<p>七天无理由退换货p>
div>
li>
<li>
<h5>h5>
<div class="service_txt">
<h4>特色服务h4>
<p>私人定制家电套餐p>
div>
li>
<li>
<h5>h5>
<div class="service_txt">
<h4>帮助中心h4>
<p>您的购物指南p>
div>
li>
ul>
div>
<div class="mod_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="#">211限时达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>
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>
dl>
<dl>
<dt>特色服务dt>
<dd><a href="#">夺宝岛a>dd>
<dd><a href="#">DIY装机a>dd>
<dd><a href="#">延保服务a>dd>
<dd><a href="#">优品铺E卡a>dd>
<dd><a href="#">优品铺通信a>dd>
dl>
<dl>
<dt>帮助中心dt>
<dd>
<img src="images/wx_cz.jpg" alt="">
小王优品铺官方客服
dd>
dl>
div>
<div class="mod_copyright">
<div class="links">
<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="#">English Sitea> | <a href="#">Contact Ua>
div>
<div class="copyright">
地址:陕西省西安市长安区西安财经大学 邮编:710100 电话:151-2973-6662 传真:000-00000000 邮箱: [email protected] <br />
京ICP备08001421号京公网安备110108007702
div>
div>
div>
footer>
body>
html>
/* main首页模块 */
.main {
width: 980px;
height: 455px;
margin-left: 220px;
margin-top: 10px;
}
.focus {
float: left;
width: 721px;
height: 455px;
}
.newsflash {
float: right;
width: 250px;
height: 455px;
}
.news {
height: 165px;
border:1px solid #e4e4e4
}
.news-hd {
height: 33px;
line-height: 33px;
border-bottom: 1px dotted #e4e4e4;
padding: 0 15px;
}
.news-hd h5 {
float: left;
font-size: 14px;
}
.news-hd .more {
float: right;
}
.news-hd .more::after {
font-family: "iconfont";
content: '\e9ed';
margin-left: 5px;
}
.news-bd {
padding: 5px 15px 0;
}
.news-bd ul li {
height: 24px;
line-height: 24px;
/* 让文本超出部分显示省略号 */
/* 第一步,让超出部分隐藏 */
overflow: hidden;
/* 第二步,规定必须一行显示,不允许换行 */
white-space: nowrap;
/* 第三步,让超出的部分显示省略号 */
text-overflow: ellipsis;
}
.lifeservice {
height: 209px;
border-left: 1px solid #e4e4e4;
}
.lifeservice ul li {
float: left;
width: 25%;
height: 71px;
border-right: 1px solid #e4e4e4;
border-bottom: 1px solid #e4e4e4;
text-align: center;
}
.lifeservice ul li i {
display: inline-block;
width: 24px;
height: 28px;
margin-top: 12px;
}
.lifeservice ul li:first-child i{
background: url(../images/icons.png) no-repeat -16px -15px;
}
.lifeservice ul li:nth-child(2) i {
background: url(../images/icons.png) no-repeat -79px -15px;
}
.lifeservice ul li:nth-child(3) i {
background: url(../images/icons.png) no-repeat -141px -17px;
}
.lifeservice ul li:nth-child(4) i {
background: url(../images/icons.png) no-repeat -205px -15px;
}
.lifeservice ul li:nth-child(5) i {
background: url(../images/icons.png) no-repeat -16px -86px;
}
.lifeservice ul li:nth-child(6) i {
background: url(../images/icons.png) no-repeat -79px -86px;
}
.lifeservice ul li:nth-child(7) i {
background: url(../images/icons.png) no-repeat -141px -86px;
}
.lifeservice ul li:nth-child(8) i {
background: url(../images/icons.png) no-repeat -205px -86px;
}
.lifeservice ul li:nth-child(9) i {
background: url(../images/icons.png) no-repeat -16px -157px;
}
.lifeservice ul li:nth-child(10) i {
background: url(../images/icons.png) no-repeat -79px -157px;
}
.lifeservice ul li:nth-child(11) i {
background: url(../images/icons.png) no-repeat -141px -157px;
}
.lifeservice ul li:last-child i {
background: url(../images/icons.png) no-repeat -205px -157px;
}
.lifeservice ul li:nth-child(2) {
position: relative;
}
.lifeservice ul li:nth-child(2) span {
position: absolute;
top: -3px;
right: 0px;
}
.bargain {
margin-top: 5px;
}
/* 推荐模块 */
.recom {
height: 163px;
margin-top: 12px;
background-color: #ebebeb;
}
.recom-hd {
float: left;
height: 163px;
width: 205px;
background-color: #5c5251;
text-align: center;
padding-top: 30px;
}
.recom-bd {
float: left;
}
.recom-bd ul li {
position: relative;
float: left;
}
/* 强制性将上传的图片改为此大小 */
.recom-bd ul li img {
width: 248px;
height: 163px;
}
/* 选前3个 */
.recom-bd ul li:nth-child(-n+3)::after {
content: '';
/* after伪元素属于行内元素,没有大小,故我们应给他转换模式 但他又需要定位,故只需给他定位即可*/
position: absolute;
right: 0;
top: 10px;
width: 1px;
height: 145px;
background-color: #ddd;
}
/* guess猜你喜欢模块 */
.guess {
height: 266px;
margin-top: 30px;
}
.guess-hd {
height: 31px;
}
.guess-hd h4 {
float: left;
font-size: 18px;
color: #333;
font-weight: 400;
}
.guess-hd a {
float: right;
font-size: 12px;
color: #666;
margin: 8px 13px 10px 0;
}
.guess-hd a::after {
content: '\e9e4';
font-family: "iconfont";
padding-left: 10px;
}
.guess-bd {
height: 235px;
border: 1px solid #ededed;
}
.guess-bd ul li {
float: left;
width: 200px;
}
.guess-bd ul li:last-child {
width: 190px;
}
.guess-bd ul li img {
margin: 20px 37px 10px;
}
.guess-bd ul li p {
display: block;
width: 205px;
height: 35px;
font-size: 12px;
padding: 0 39px;
border-right: 1px solid #ededed;
}
.guess-bd ul li:last-child p {
border: 0;
}
.guess-bd ul li .price {
display: block;
width: 170px;
font-size: 21px;
color: #df3033;
font-weight: 700;
margin-left: 35px;
margin-bottom: 12px;
border-right: 1px solid #ededed;
}
.guess-bd ul li:last-child .price {
border: 0;
}
/* fun有趣模块 */
.fun {
height: 437px;
margin-top: 28px;
}
.fun h4 {
font-size: 18px;
color: #333;
font-weight: 400;
margin-bottom: 5px;
}
.fun .interest .interest-conver {
float: left;
}
.fun .interest .interest-things {
float: left;
width: 227px;
height: 405px;
border: 1px solid #ededed;
}
.fun .interest .interest-things h5 {
display: inline-block;
width: 193px;
height: 40px;
border-bottom: 1px dashed #ededed;
line-height: 40px;
text-align: center;
margin-left: 17px;
font-size: 14px;
color: #333;
}
.fun .interest .interest-things .thing1 {
height: 207px;
border-bottom: 1px solid #ededed;
}
.fun .interest .interest-things .thing2 {
height: 158px;
}
.fun .interest .interest-brands {
float: left;
width: 403px;
height: 405px;
border: 1px solid #ededed;
border-left: none;
background-color: #f7f7f7;
}
.fun .interest .interest-brands h5 {
display: inline-block;
width: 367px;
height: 40px;
border-bottom: 1px dashed #ededed;
line-height: 40px;
text-align: center;
margin-left: 20px;
font-size: 14px;
color: #333;
}
.fun .interest .interest-brands .brand1 {
height: 207px;
border-bottom: 1px solid #ededed;
}
.fun .interest .interest-brands .brand2 {
float: left;
/* width: 49%; */
height: 158px;
}
.fun .interest .interest-brands .brand3 {
float: left;
height: 158px;
width: 49%;
border-left: 1px solid #ededed;
}
.fun .interest .interest-brandArea{
float: left;
width: 166px;
height: 405px;
border: 1px solid #ededed;
}
.fun .interest .interest-brandArea ul li {
float: left;
height: 7%;
}
.fun .interest .interest-brandArea ul li:nth-child(odd) {
border-right: 2px dashed #efefef;
}
.fun .interest .interest-brandArea ul li:nth-child(-n+12) {
border-bottom: 2px dashed #efefef;
}
/* floor楼层区域模块 */
.floor .w {
margin-top: 30px;
}
/* 1楼家用电器2楼手机通讯3楼电脑办公模块通用 */
.box_hd {
height: 30px;
border-bottom: 2px solid #c81623;
}
.box_hd h3 {
float: left;
font-size: 18px;
color: #c81623;
font-weight: 400;
}
.tab_list {
float: right;
line-height: 30px;
}
.tab_list ul li {
float: left;
}
.tab_list ul li a {
margin: 0 15px;
}
.box_bd {
height: 361px;
}
/* 亲儿子 */
.tab_list_item>div {
float: left;
}
/* 此处先给出宽度,前面的调用即可 */
.col_210 {
width: 210px;
height: 361px;
background-color: #f9f9f9;
text-align: center;
}
.col_210 ul {
padding-left: 12px;
}
.col_210 ul li {
float: left;
width: 85px;
height: 34px;
border-bottom: 1px solid #ccc;
line-height: 33px;
/* text-align: center; */
margin-right: 10px;
}
.col_329 {
width: 329px;
}
.col_221 {
width: 221px;
border-right: 1px solid #ccc;
}
.col_219 {
width: 219px;
}
.bb {
/* 一般情况下,如果a包含有宽度的盒子,那么a需要转换为块级元素 */
display: block;
border-bottom: 1px solid #ccc;
}
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>列表页-正品低价、品质保障!title>
<meta name="description"content="小王优品铺-专业的综合网上购物商城,销售家电、数码通讯、电脑、家居百货、服装服饰、母婴、图书、食品等数万个品牌优质商品。便捷、诚信的服务,为您提供愉悦的网上购物体验!" />
<meta name="keywords" content="网上购物,网上商城手机,笔记本,电脑,MP3,CD,VCD,DV,相机,数码,配件,手表存储卡,京东" />
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/common.css">
<link rel="stylesheet" href="css/list.css">
head>
<body>
<section class="shortcut">
<div class="w">
<div class="fl">
<ul>
<li>小王优品铺欢迎您! li>
<li>
<a href="#">请登录a> <a href="#" class="style_red">免费注册a>
li>
ul>
div>
<div class="fr">
<ul>
<li>我的订单li>
<li>li>
<li class="arrow-icon">我的优品铺li>
<li>li>
<li>优品铺会员li>
<li>li>
<li>企业采购li>
<li>li>
<li class="arrow-icon">关注优品铺li>
<li>li>
<li class="arrow-icon">客户服务li>
<li>li>
<li class="arrow-icon">网站导航li>
ul>
div>
div>
section>
<header class="header w">
<div class="logo">
<h1>
<a href="index.html" title="小王优品铺">小王优品铺a>
h1>
div>
<div class="sk">
<img src="images/sk.png" alt="">
div>
<div class="search">
<input type="search" name="" id="" placeholder="语言开发">
<button>搜索button>
div>
<div class="hotwords">
<a href="" class="style_red">优惠购首发a>
<a href="">亿元优惠a>
<a href="">9.9元团购a>
<a href="">每满99减30a>
<a href="">办公用品a>
<a href="">电脑a>
<a href="">通信a>
div>
<div class="shopcar">
我的购物车
<i class="count">8i>
div>
header>
<nav class="nav">
<div class="w">
<div class="sk_list">
<ul>
<li><a href="#">优品秒杀a>li>
<li><a href="#">即将售罄a>li>
<li><a href="#">超值低价a>li>
ul>
div>
<div class="sk_con">
<ul>
<li><a href="#">女装a>li>
<li><a href="#" class="style_red">女鞋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>
div>
div>
nav>
<div class="w sk_container">
<div class="sk_hd">
<img src="upload/bg_03.jpg" alt="">
div>
<div class="sk_bd">
<ul>
<li>
<a href="#"><img src="upload/list_01.jpg" alt="">a>
<p>这是一段商品介绍这是一段商品介绍这是一段商品介绍这是一段商品介绍p>
<div class="span">
<div class="one_span"><i>¥i>6666div>
<del class="two_span">¥8888del>
div>
<div class="jindutiao">
<span>已售87%span>
<div class="jdt">
<span>span>
div>
<span>剩余<i class="style_red">29i>件span>
div>
<div class="buy">
<a href="#">立即抢购a>
div>
li>
<li>
<a href="#"><img src="upload/list_01.jpg" alt="">a>
<p>这是一段商品介绍这是一段商品介绍这是一段商品介绍这是一段商品介绍p>
<div class="span">
<div class="one_span"><i>¥i>6666div>
<del class="two_span">¥8888del>
div>
<div class="jindutiao">
<span>已售87%span>
<div class="jdt">
<span>span>
div>
<span>剩余<i class="style_red">29i>件span>
div>
<div class="buy">
<a href="#">立即抢购a>
div>
li>
<li>
<a href="#"><img src="upload/list_01.jpg" alt="">a>
<p>这是一段商品介绍这是一段商品介绍这是一段商品介绍这是一段商品介绍p>
<div class="span">
<div class="one_span"><i>¥i>6666div>
<del class="two_span">¥8888del>
div>
<div class="jindutiao">
<span>已售87%span>
<div class="jdt">
<span>span>
div>
<span>剩余<i class="style_red">29i>件span>
div>
<div class="buy">
<a href="#">立即抢购a>
div>
li>
<li>
<a href="#"><img src="upload/list_01.jpg" alt="">a>
<p>这是一段商品介绍这是一段商品介绍这是一段商品介绍这是一段商品介绍p>
<div class="span">
<div class="one_span"><i>¥i>6666div>
<del class="two_span">¥8888del>
div>
<div class="jindutiao">
<span>已售87%span>
<div class="jdt">
<span>span>
div>
<span>剩余<i class="style_red">29i>件span>
div>
<div class="buy">
<a href="#">立即抢购a>
div>
li>
<li>
<a href="#"><img src="upload/list_01.jpg" alt="">a>
<p>这是一段商品介绍这是一段商品介绍这是一段商品介绍这是一段商品介绍p>
<div class="span">
<div class="one_span"><i>¥i>6666div>
<del class="two_span">¥8888del>
div>
<div class="jindutiao">
<span>已售87%span>
<div class="jdt">
<span>span>
div>
<span>剩余<i class="style_red">29i>件span>
div>
<div class="buy">
<a href="#">立即抢购a>
div>
li>
<li>
<a href="#"><img src="upload/list_01.jpg" alt="">a>
<p>这是一段商品介绍这是一段商品介绍这是一段商品介绍这是一段商品介绍p>
<div class="span">
<div class="one_span"><i>¥i>6666div>
<del class="two_span">¥8888del>
div>
<div class="jindutiao">
<span>已售87%span>
<div class="jdt">
<span>span>
div>
<span>剩余<i class="style_red">29i>件span>
div>
<div class="buy">
<a href="#">立即抢购a>
div>
li>
<li>
<a href="#"><img src="upload/list_01.jpg" alt="">a>
<p>这是一段商品介绍这是一段商品介绍这是一段商品介绍这是一段商品介绍p>
<div class="span">
<div class="one_span"><i>¥i>6666div>
<del class="two_span">¥8888del>
div>
<div class="jindutiao">
<span>已售87%span>
<div class="jdt">
<span>span>
div>
<span>剩余<i class="style_red">29i>件span>
div>
<div class="buy">
<a href="#">立即抢购a>
div>
li>
<li>
<a href="#"><img src="upload/list_01.jpg" alt="">a>
<p>这是一段商品介绍这是一段商品介绍这是一段商品介绍这是一段商品介绍p>
<div class="span">
<div class="one_span"><i>¥i>6666div>
<del class="two_span">¥8888del>
div>
<div class="jindutiao">
<span>已售87%span>
<div class="jdt">
<span>span>
div>
<span>剩余<i class="style_red">29i>件span>
div>
<div class="buy">
<a href="#">立即抢购a>
div>
li>
<li>
<a href="#"><img src="upload/list_01.jpg" alt="">a>
<p>这是一段商品介绍这是一段商品介绍这是一段商品介绍这是一段商品介绍p>
<div class="span">
<div class="one_span"><i>¥i>6666div>
<del class="two_span">¥8888del>
div>
<div class="jindutiao">
<span>已售87%span>
<div class="jdt">
<span>span>
div>
<span>剩余<i class="style_red">29i>件span>
div>
<div class="buy">
<a href="#">立即抢购a>
div>
li>
<li>
<a href="#"><img src="upload/list_01.jpg" alt="">a>
<p>这是一段商品介绍这是一段商品介绍这是一段商品介绍这是一段商品介绍p>
<div class="span">
<div class="one_span"><i>¥i>6666div>
<del class="two_span">¥8888del>
div>
<div class="jindutiao">
<span>已售87%span>
<div class="jdt">
<span>span>
div>
<span>剩余<i class="style_red">29i>件span>
div>
<div class="buy">
<a href="#">立即抢购a>
div>
li>
<li>
<a href="#"><img src="upload/list_01.jpg" alt="">a>
<p>这是一段商品介绍这是一段商品介绍这是一段商品介绍这是一段商品介绍p>
<div class="span">
<div class="one_span"><i>¥i>6666div>
<del class="two_span">¥8888del>
div>
<div class="jindutiao">
<span>已售87%span>
<div class="jdt">
<span>span>
div>
<span>剩余<i class="style_red">29i>件span>
div>
<div class="buy">
<a href="#">立即抢购a>
div>
li>
<li>
<a href="#"><img src="upload/list_01.jpg" alt="">a>
<p>这是一段商品介绍这是一段商品介绍这是一段商品介绍这是一段商品介绍p>
<div class="span">
<div class="one_span"><i>¥i>6666div>
<del class="two_span">¥8888del>
div>
<div class="jindutiao">
<span>已售87%span>
<div class="jdt">
<span>span>
div>
<span>剩余<i class="style_red">29i>件span>
div>
<div class="buy">
<a href="#">立即抢购a>
div>
li>
<li>
<a href="#"><img src="upload/list_01.jpg" alt="">a>
<p>这是一段商品介绍这是一段商品介绍这是一段商品介绍这是一段商品介绍p>
<div class="span">
<div class="one_span"><i>¥i>6666div>
<del class="two_span">¥8888del>
div>
<div class="jindutiao">
<span>已售87%span>
<div class="jdt">
<span>span>
div>
<span>剩余<i class="style_red">29i>件span>
div>
<div class="buy">
<a href="#">立即抢购a>
div>
li>
<li>
<a href="#"><img src="upload/list_01.jpg" alt="">a>
<p>这是一段商品介绍这是一段商品介绍这是一段商品介绍这是一段商品介绍p>
<div class="span">
<div class="one_span"><i>¥i>6666div>
<del class="two_span">¥8888del>
div>
<div class="jindutiao">
<span>已售87%span>
<div class="jdt">
<span>span>
div>
<span>剩余<i class="style_red">29i>件span>
div>
<div class="buy">
<a href="#">立即抢购a>
div>
li>
<li>
<a href="#"><img src="upload/list_01.jpg" alt="">a>
<p>这是一段商品介绍这是一段商品介绍这是一段商品介绍这是一段商品介绍p>
<div class="span">
<div class="one_span"><i>¥i>6666div>
<del class="two_span">¥8888del>
div>
<div class="jindutiao">
<span>已售87%span>
<div class="jdt">
<span>span>
div>
<span>剩余<i class="style_red">29i>件span>
div>
<div class="buy">
<a href="#">立即抢购a>
div>
li>
<li>
<a href="#"><img src="upload/list_01.jpg" alt="">a>
<p>这是一段商品介绍这是一段商品介绍这是一段商品介绍这是一段商品介绍p>
<div class="span">
<div class="one_span"><i>¥i>6666div>
<del class="two_span">¥8888del>
div>
<div class="jindutiao">
<span>已售87%span>
<div class="jdt">
<span>span>
div>
<span>剩余<i class="style_red">29i>件span>
div>
<div class="buy">
<a href="#">立即抢购a>
div>
li>
ul>
div>
div>
<footer class="footer">
<div class="w">
<div class="mod_service">
<ul>
<li>
<h5>h5>
<div class="service_txt">
<h4>正品保障h4>
<p>正品保障,提供发票p>
div>
li>
<li>
<h5>h5>
<div class="service_txt">
<h4>急速物流h4>
<p>急速物流,急速送达p>
div>
li>
<li>
<h5>h5>
<div class="service_txt">
<h4>无忧售后h4>
<p>七天无理由退换货p>
div>
li>
<li>
<h5>h5>
<div class="service_txt">
<h4>特色服务h4>
<p>私人定制家电套餐p>
div>
li>
<li>
<h5>h5>
<div class="service_txt">
<h4>帮助中心h4>
<p>您的购物指南p>
div>
li>
ul>
div>
<div class="mod_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="#">211限时达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>
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>
dl>
<dl>
<dt>特色服务dt>
<dd><a href="#">夺宝岛a>dd>
<dd><a href="#">DIY装机a>dd>
<dd><a href="#">延保服务a>dd>
<dd><a href="#">优品铺E卡a>dd>
<dd><a href="#">优品铺通信a>dd>
dl>
<dl>
<dt>帮助中心dt>
<dd>
<img src="images/wx_cz.jpg" alt="">
小王优品铺官方客服
dd>
dl>
div>
<div class="mod_copyright">
<div class="links">
<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="#">English Sitea> | <a href="#">Contact Ua>
div>
<div class="copyright">
地址:陕西省西安市长安区西安财经大学 邮编:710100 电话:151-2973-6662 传真:000-00000000 邮箱: [email protected] <br />
京ICP备08001421号京公网安备110108007702
div>
div>
div>
footer>
body>
html>
.nav {
/* 溢出部分隐藏,否则会使下面的内容由于上面浮动,在其后正常显示 */
overflow: hidden;
}
.sk {
position: absolute;
border-left: 1px solid #c81523;
left: 260px;
top: 40px;
padding-left: 12px;
}
.sk_list {
float: left;
}
.sk_list ul li {
float: left;
}
.sk_list ul li a {
display: block;
line-height: 47px;
padding: 0 30px;
font-size: 16px;
font-weight: 700;
color: #000;
}
.sk_con {
float: left;
}
.sk_con ul li {
float: left;
}
.sk_con ul li a {
display: block;
/* 行高大于高度,字会偏下 */
line-height: 49px;
padding: 0 20px;
font-size: 14px;
}
.sk_con ul li:last-child a::after{
content: '\e9e8';
font-family: "iconfont";
}
.sk_container {
margin-bottom: 280px;
}
.sk_bd {
/* 清除浮动,防止下方li把footer压塌,因为没有给.sk_bd高度 */
overflow: hidden;
}
.sk_bd ul li {
float: left;
width: 290px;
height: 460px;
border: 1px solid transparent;
margin-right: 13px;
margin-top: 30px;
}
.sk_bd ul li:nth-child(4n) {
margin-right: 0;
}
.sk_bd ul li:hover {
border: 1px solid #c81523;
}
.sk_bd ul li p {
line-height: 22px;
padding-left: 10px;
font-size: 14px;
}
.span {
display: inline-block;
width: 290px;
}
.span .one_span {
float: left;
color: #e60012;
font-size: 22px;
font-weight: 700;
margin: 0 12px;
}
.span .one_span i {
font-size: 14px;
}
.span .two_span {
float: left;
color: #ababab;
font-size: 13px;
font-weight: 600;
padding-top: 9px;
}
.jindutiao {
padding-left: 10px;
margin-bottom: 10px;
}
.jindutiao span {
font-size: 14px;
}
.jindutiao span i {
font-size: 16px;
font-weight: 500;
}
.jdt {
margin: 0 5px;
display: inline-block;
/* 使得三个行内元素垂直居中,与行内块一起用的 */
vertical-align: middle;
width: 132px;
height: 11px;
border: 1px solid #e12228;
/* border-top: 1px solid #e12228;
border-right: 1px solid #e12228;
border-bottom: 1px solid #e12228; */
border-radius: 22px;
/* 删除圆圈以外的内部span的背景 */
overflow: hidden;
}
.jdt span {
display: block;
height: 11px;
width: 87%;
background-color: #ed282e;
}
.buy {
display: block;
width: 289px;
height: 45px;
background-color: #b1191a;
}
.buy a {
display: block;
line-height: 45px;
text-align: center;
font-size: 20px;
color: #fff;
}
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>个人注册title>
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/register.css">
head>
<body>
<div class="w">
<header>
<div class="logo">
<a href="index.html"><img src="images/logo.png" alt="">a>
div>
header>
<div class="registerarea">
<h3>
注册新用户
<div class="login">我有账号,去<a href="#">登录a>div>
h3>
<div class="reg_form">
<form action="">
<ul>
<li>
<label for="">手机号:label>
<input type="text" class="inp">
<span class="error"><i class="error_icon">i> 手机号码格式不正确,请重新输入span>
li>
<li>
<label for="">短信验证码:label>
<input type="text" class="inp">
<span class="success"><i class="success_icon">i> 短信验证码输入正确span>
li>
<li>
<label for="">登录密码:label>
<input type="password" class="inp">
<span class="error"><i class="error_icon">i> 密码少于6位数,请重新输入span>
li>
<li class="safe">
安全程度 <em class="ruo">弱em> <em class="zhong">中em> <em class="qiang">强em>
li>
<li>
<label for="">确认密码:label>
<input type="text" class="inp">
<span class="error"><i class="error_icon">i> 密码不一致,请重新输入span>
li>
<li class="agree">
<input type="checkbox" name="" id="">
同意协议并注册 <a href="#">《小王优品铺用户协议》a>
li>
<li><input type="submit" value="完成注册" class="btn">li>
ul>
form>
div>
div>
<footer>
<div class="mod_copyright">
<div class="links">
<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="#">English Sitea> | <a href="#">Contact Ua>
div>
<div class="copyright">
地址:陕西省西安市长安区西安财经大学 邮编:710100 电话:151-2973-6662 传真:000-00000000 邮箱: [email protected] <br />
京ICP备08001421号京公网安备110108007702
div>
div>
footer>
div>
body>
html>
.w {
width: 1200px;
margin: 0 auto;
}
header {
height: 84px;
border-bottom: 2px solid #c81523;
}
.logo {
padding-top: 13px;
}
.registerarea {
height: 522px;
border: 1px solid #ccc;
margin-top: 20px;
}
.registerarea h3 {
height: 42px;
border-bottom: 1px solid #ccc;
background-color: #ececec;
line-height: 42px;
padding: 0 10px;
font-size: 18px;
font-weight: 400;
}
.registerarea h3 .login {
float: right;
font-size: 14px;
}
.registerarea h3 .login a {
color: #c81523;
}
.reg_form {
width: 600px;
margin: 50px auto 0;
}
.reg_form ul li {
margin-bottom: 20px;
}
.reg_form ul li label {
display: inline-block;
width: 88px;
text-align: right;
}
.reg_form ul li .inp {
width: 242px;
height: 37px;
border: 1px solid #ccc;
}
.error {
color: #c81523;
}
.error_icon,
.success_icon {
display: inline-block;
/* 行内块元素与文字对齐居中 */
vertical-align: middle;
width: 20px;
height: 20px;
background: url(../images/error.png);
margin-top: -2px;
}
.success {
color: green;
}
.success_icon {
background: url(../images/success.png);
}
.safe {
padding-left: 170px;
}
.safe em {
padding: 0 12px;
}
.ruo {
background-color: #de1111;
}
.zhong {
background-color: #f79100;
}
.qiang {
background-color: #40b83f;
}
.agree {
padding-left: 95px;
}
.agree input {
vertical-align: middle;
}
.agree a {
color: #1ba1e6;
}
.btn {
width: 200px;
height: 34px;
background-color: #c81623;
font-size: 14px;
color: #fff;
margin: 30px 0 0 100px;
}
.mod_copyright {
text-align: center;
padding-top: 20px;
}
.links {
margin-bottom: 15px;
}
.links a {
margin: 0 3px;
}
.copyright {
line-height: 20px;
}