📄 style.css
字号:
/*
Template Name: ECSHOP Default
Template URI: http://www.ecshop.com/
Description: The default ECSHOP template.
Version: 2.6.2
Author: ECSHOP Team
Author URI: http://www.ecshop.com/
Logo filename: logo.gif
*/
/* ====================
公共样式
==================== */
body{background:#fff; font-size:12px; font-family:"宋体",Verdana, Arial; line-height:150%; margin:5px 0 0 0; padding:0; color:#404040;}
div{margin:0 auto; padding:0;}
h1,h2,h3,h4,h5,h6,ul,li,dl,dt,dd,form,img,p{
margin:0; padding:0; border:none; list-style-type:none;
}
.block{
width:960px; height:auto;
}
.f_l{float:left;}
.f_r{float:right;}
.tl{ text-align:left;}
.tc{ text-align:center;}
.tr{ text-align:right;}
.dis{display:block;}
.inline{display:inline;}
.none{display:none;}
.dashed{background:url(images/lineBg.gif) repeat-x left top; color:#3f3f3f; padding:2px 0 3px 12px;}
.clearfix:after{
content:"."; display:block; height:0; clear:both;
visibility:hidden;
}
*html .clearfix{
height:1%;
}
*+html .clearfix{
height:1%;
}
/*英文强制换行*/
.word{word-break:break-all;}
/*边框*/
.B_blue{border:1px solid #c5e4ff;}
.B_input{border:1px solid #0f97ed;}
.inputBg{border:1px solid #b3b3b3; background:url(images/inputbg.gif) repeat-x left top; height:18px;}
/*字体颜色*/
.f1{color:#ff6666;}
.f2{color:#006bd0; font-weight:bold; margin-right:15px;}
.f3{color:#9e9e9e;}
.f4{color:#fe596a;}
.f4_b{color:#fe596a; font-weight:bold;}
.f5{ font-size:14px; font-weight:bold;}
.f6{color:#006bd0;}
.market{ font-size:14px; text-decoration:line-through;}
.shop{color:#fe596a; font-size:14px; font-weight:600;}
.market_s{text-decoration:line-through;}
.shop_s{color:#fe596a;}
/*按钮部分*/
.bnt_blue{
background:url(images/bg.gif) no-repeat 0px 0px; width:52px; height:21px;
text-align:center; line-height:21px; color:#fff; border:none;
}
.bnt_blue_1{
background:url(images/bg.gif) no-repeat 0px -663px; width:77px; height:21px;
text-align:center; line-height:21px; color:#fff; border:none;
}
.bnt_blue_2{
background:url(images/bg.gif) no-repeat 0px -696px; width:139px; height:21px;
text-align:center; line-height:21px; color:#fff; border:none;
}
.bnt_bonus{
background:url(images/bg.gif) no-repeat -56px 0px; width:52px; height:21px;
text-align:center; line-height:21px; color:#fff; border:none;
}
/*模块容器*/
.box{background:#f1f1f1; padding-bottom:2px; overflow:hidden;}
.box_1{border:1px solid #c5e4ff; background-color:#fff;}
.box_2{border:1px solid #c5e4ff; background:url(images/box_2Bg.gif) repeat-x top left;
background-color:#edf8fe; overflow:hidden;
}
.boxCenterList{padding:8px;}
/*模块标题*/
h3{height:33px; line-height:33px; font-size:12px; background:url(images/h3title.gif) repeat-x left top; text-align:right;
padding:0 12px; font-weight:100;
}
h3.border{border:1px solid #c5e4ff; border-bottom:none;}
h3 img{position:relative; top:7px;}
h3 span{float:left; background:url(images/bg.gif) no-repeat 0px -570px;width:auto; height:33px; line-height:33px; text-align:left;
font-weight:bold; color:#56a5ee; padding-left:12px;}
h5{height:26px; line-height:26px; text-align:right; background-color:#edf7ff; font-size:12px;
color:#56a5ee; padding:0 10px 0 0;
}
h5 span{float:left; font-weight:bold; background:url(images/bg.gif) no-repeat 0 -616px; padding-left:25px;}
h6{height:23px; line-height:23px; text-align:right; font-size:12px; background:#edf7ff; color:#3f3f3f;
border:1px solid #fff; padding-right:10px;
}
h6 span{float:left; padding-left:15px;}
/*页面留白*/
.blank{height:8px; line-height:8px; clear:both; visibility:hidden;}
.blank5{height:5px; line-height:5px;/* _margin:-3px 0;*/ clear:both; visibility:hidden;}
/*布局*/
.AreaL{width:200px; float:left; margin-right:10px;}
.AreaR{width:750px; float:left;}
/* ====================
导航部分
==================== */
/*顶部管理型导航*/
.log{height:50px;}
.log li{float:left;}
.log .userInfo{*margin-right:10px; /*width:300px;*/ text-align:left;}
.log .userInfo a{color:#006acd; text-decoration:none;}
.log li img{position:relative; top:5px;}
#topNav{background:url(images/topNavBg.gif) no-repeat left top; height:31px;
line-height:31px; color:#bebfc1; padding:0px 15px; margin:0px 10px; position:relative;
}
#topNav .topNavR{background:url(images/topNavR.gif) no-repeat; width:5px; height:31px;
position:absolute; top:0px; right:0px;
}
#topNav a{color:#006ad0; text-decoration:none;}
/*页面主导航*/
#mainNav{padding:0 25px; width:910px;}
#mainNav a{display:block; height:26p; float:left; line-height:26px; text-align:center;
padding:0 15px; background:url(images/NavBg.gif) no-repeat 0 -29px; position:relative;
margin-right:2px; color:#026acb; text-decoration:none;
}
#mainNav a span{width:3px; height:26px; background:url(images/NavBg.gif) no-repeat 0 -88px;
position:absolute; top:0px; right:0px;
}
#mainNav a:hover{display:block; height:26p; float:left; line-height:26px; text-align:center;
padding:0 15px; background:url(images/NavBg.gif) no-repeat 0 0; position:relative;
margin-right:2px; color:#fff; text-decoration:none;
}
#mainNav .cur{display:block; height:26p; float:left; line-height:26px; text-align:center;
padding:0 15px; background:url(images/NavBg.gif) no-repeat 0 0; position:relative;
margin-right:2px; color:#fff; text-decoration:none; font-weight:bold;
}
#mainNav a:hover span,#mainNav .cur span{width:3px; height:26px; background:url(images/NavBg.gif) no-repeat 0 -59px;
position:absolute; top:0px; right:0px;
}
/*搜索*/
#search{border:1px solid #5cb4e6; background:url(images/searchBg.gif) repeat-x left top; width:918px;
padding:0px 20px; height:36px; line-height:36px;
}
#search a{color:#fff; text-decoration:none;}
#search .keys{background:url(images/bg.gif) no-repeat 0 -28px;
color:#fff; padding-left:40px;
}
#search .go{background:url(images/bnt_search.gif); border:none; width:52px; height:19px;/* position:relative; top:2px; utf8下*/}
/*当前位置*/
#ur_here{border:1px solid #c5e4ff; border-top:none; background:url(images/uh_bg.gif) repeat-x left top;
height:36px; line-height:36px; padding:0 12px;
}
#ur_here a{color:#006cce; text-decoration:none;}
/* ====================
模块
==================== */
/*购物车*/
.cart{background:url(images/catBg.gif) no-repeat left top; padding:15px 10px 15px 50px;
color:#006bcd; height:50px; _padding:12px 10px 15px 50px;
}
.cart a{color:#006bcd; text-decoration:none;}
.cart a:hover{color:#006bcd; text-decoration:underline;}
/*商品分类*/
#category_tree{border:4px solid #f1faff; background-color:#fff;}
#category_tree dl{margin:6px;}
#category_tree dt{background:url(images/lineBg.gif) repeat-x left bottom;
color:#3f3f3f; padding:2px 0 3px 12px;
}
#category_tree dt a{background:url(images/bg.gif) no-repeat 0 -69px;
color:#3f3f3f; padding-left:15px; text-decoration:none;
}
#category_tree dd{padding:3px 0 3px 10px;}
#category_tree dd a{color:#404040; text-decoration:none;}
#category_tree dd a:hover{color:#ff6600; text-decoration:none;}
/*销售排行*/
.top10Tit{background:url(images/bg.gif) no-repeat 0px -85px; height:30px;}
.top10List{border:1px solid #d7ecfd; background-color:#fff; margin:0px 4px 4px 4px;}
.top10List li{border-bottom:1px solid #e2f3fd; padding:3px 3px 3px 10px; color:#3f3f3f;}
.top10List li img{margin-right:5px; position:relative; top:3px;}
/*linkCOLOR*/
.top10List li a,#mallNews .NewsList li a,.boxCenterList li a{color:#3f3f3f; text-decoration:none;}
.top10List li a:hover,#mallNews .NewsList li a:hover,.boxCenterList li a:hover{color:#ff6600; text-decoration:none;}
/*首页焦点图*/
#focus{border-right:1px solid #c5e4ff; padding:8px; background:url(images/foucsBg.gif) repeat-x left top;}
#mallNews{width:230px; padding:8px 8px 0px 8px; background:url(images/foucsBg.gif) repeat-x left top;}
#mallNews .NewsTit{background:url(images/bg.gif) 0px -132px; height:23px;}
#mallNews .NewsList{background:#FFFFFF; padding:8px;}
#mallNews .NewsList ul{margin-top:10px;}
#mallNews .NewsList li{background:url(images/bg.gif) no-repeat 0px -167px; padding:0px 0px 0px 10px;
text-align:left;
}
/*今日特价和品牌*/
#sales{width:500px; background:url(images/salesBg.gif) repeat-x left bottom;
border-bottom:2px solid #f0f1f3; background-color:#eef8ff;
}
#sales h1{font-size:12px; background:url(images/salesTitBg.gif) no-repeat; height:33px; text-align:right;}
#sales h1 img{position:relative; top:10px; right:8px;}
#sales .goodBox{margin:10px 0px 10px 10px; _margin-left:5px;}
#sales .goodBox .goodList p{text-align:left; color:#3f3f3f;}
#sales .goodBox .goodList p a{color:#3f3f3f; text-decoration:none;}
#sales .goodBox .goodList p a:hover{color:#ff6600; text-decoration:none;}
#sales .goodList{width:110px; margin:0px 5px 0px 5px; float:left;}
#sales .goodList img{background:url(images/salesGoodBg.gif) no-repeat; width:100px; height:100px; padding:5px;
}
#sales .goodList p{ margin-top:3px; text-align:center;}
#brands{width:247px; height:199px; *height:201px; padding:1px 0 0 1px; position:relative;}
#brands .brandsMore{position:absolute; left:178px; bottom:10px;
width:65px; height:41px;
}
#brands .brandsMore img{border:none; width:65px; height:41px;}
#brands img{width:78px; height:40px; margin:3px 1px; border:1px solid #c5e4ff; float:left;}
#brands a{color:#0069cd; text-decoration:none; margin:2px;}
.brandsIe6{_width:250px;}/*在ie6下特价商品不存在的话品牌推荐永远靠右显示*/
/*精品推荐,新品上市,热卖商品*/
.centerPadd{padding:5px 8px 8px 8px; overflow:hidden;}
.itemTit{height:30px; background:url(images/bg.gif) no-repeat 0px -195px; padding-left:190px; text-align:right;
/*margin-bottom:-3px; _margin-bottom:-2px;*/
}
.itemTit.New{background:url(images/bg.gif) no-repeat 0px -225px;}
.itemTit.Hot{background:url(images/bg.gif) no-repeat 0px -256px;}
.itemTit img{position:relative; top:7px;}
.itemTit h2{float:left; height:27px; background:url(images/itemH2Bg.gif) repeat-x left top; border:1px solid #d6ecff;
font-size:12px; text-align:center; color:#3f3f3f; font-weight:100; padding:0px 10px; line-height:28px; margin:0 6px 0 0;
border-bottom:none; position:relative; bottom:-3px; display:inline; white-space:nowrap;
}
.itemTit h2 a{color:#3f3f3f; text-decoration:none;}
.itemTit .h2bg{height:27px; line-height:28px; border:none; background:none;
font-size:12px; text-align:center; color:#006ace; font-weight:100; padding:0px 10px;
display:inline; white-space:nowrap;
}
.itemTit .h2bg a{color:#006ace; text-decoration:none;}
.centerPadd .goodsBox{border:1px solid #d6ecff; background:#fff; padding:12px 0px 0px 17px; *padding:12px 0px 0px 17px;
_padding:12px 0px 0px 0px;}
.centerPadd .goodsBox .more{text-align:right; clear:both; margin:0 8px 8px 0;}
/*单个商品*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -