| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254 |
- /* css reset 重置样式 */
- body{
- margin: 0;
- }
- ul{
- padding: 0;
- margin: 0;
- }
- li{
- list-style: none;
- }
- a{
- /* text-decoration:none 清除下划线 underline下划线 line-through删除线 */
- text-decoration: none;
- }
- p{
- margin:0;
- }
- /* 工具类 */
- /* 页面内容宽度 */
- .main-width{
- width: 1226px;
- margin: 0 auto;
- }
- .clearfix::after{
- content: "";
- display: block;
- /* 清除所有方向的浮动 */
- clear: both;
- }
- /* 顶部导航栏start */
- .top-nav{
- background-color: #333;
- color: #b0b0b0;
- height: 40px;
- font-size: 12px;
- line-height: 40px;
- }
- .top-nav a{
- color: #b0b0b0;
- }
- .top-nav a:hover{
- color: #fff;
- }
- .top-nav .left-nav{
- float: left;
- }
- .top-nav .right-nav{
- float: right;
- }
- .top-nav .line{
- margin: 0 4px;
- color: #424242;
- }
- .top-nav .cart{
- background-color: #424242;
- height: 40px;
- display: inline-block;
- padding:0 10px;
- }
- .top-nav .download-app{
- position: relative;
- }
- .top-nav .download-app .appcode{
- position: absolute;
- left:50%;
- margin-left: -60px;
- width: 120px;
- background-color: #fff;
- box-shadow: 0 0 10px rgba(0,0,0,0.5);
- text-align: center;
- line-height: normal;
- padding: 10px 0;
- display: none;
- }
- .top-nav .appcode img{
- width: 90px;
- height: 90px;
- }
- .top-nav .download-app .appcode-text{
- font-size: 14px;
- color: #333;
- }
- .top-nav .appcode .arr{
- width: 0;
- height: 0;
- border-bottom: 8px solid #fff;
- border-left: 8px solid transparent;
- border-right: 8px solid transparent;
- position: absolute;
- left: 50%;
- margin-left: -8px;
- top:-8px;
- }
- .top-nav .download-app{
- display: inline-block;
- height: 40px;
- }
- .top-nav .download-app:hover .appcode{
- display: block;
- }
- /* 顶部导航栏end */
- /* 头部导航栏start */
- .head-nav{
- height: 60px;
- padding:20px;
- }
- .head-nav .head-logo img{
- width: 56px;
- height: 56px;
- }
- .head-nav .head-logo{
- float: left;
- }
- .head-nav .head-nav-list{
- float: left;
- margin-left: 160px;
- }
- .head-nav .head-nav-list li{
- float: left;
- height: 60px;
- line-height: 60px;
- font-size: 16px;
- color: #333;
- padding:0 10px;
- }
- .head-nav .head-nav-list li:hover{
- color: #ff6900;
- cursor: pointer;
- }
- .head-nav .head-search{
- float: right;
- border:1px solid #e0e0e0;
- width: 296px;
- height: 50px;
- }
- .head-nav .head-search .search-inp{
- float: left;
- width: 245px;
- }
- .head-nav .head-search .search-inp input{
- height: 48px;
- border:0;
- outline: none;
- padding-left: 20px;
- }
- .head-nav .head-search .search-btn{
- float: left;
- width: 50px;
- height: 50px;
- border-left:1px solid #e0e0e0;
- text-align: center;
- line-height: 50px;
- }
- .head-nav .head-search .search-btn:hover{
- background-color: #ff6900;
- }
- .head-nav .head-search .search-btn i{
- font-size: 24px;
- color: #616161;
- }
- .head-nav .head-search .search-btn:hover i{
- color: #fff;
- }
- /* 头部导航栏end */
- /* 轮播图 start */
- .swiper-content{
- position: relative;
- }
- .swiper-content .swiper-img img{
- width: 100%;
- }
- .swiper-content .swiper-nav{
- position: absolute;
- top:0;
- left: 0;
- width: 234px;
- height: 460px;
- background-color: rgba(105,101,101,.6);
- }
- .swiper-content .swiper-nav ul{
- padding:20px 0;
- }
- .swiper-content .swiper-nav ul li{
- height: 42px;
- line-height: 42px;
- font-size:14px;
- color: #fff;
- padding-left: 30px;
- padding-right: 20px;
- }
- .swiper-content .swiper-nav li i{
- float:right;
- }
- .swiper-content .swiper-nav li:hover{
- background-color: #ff6900;
- }
- .swiper-content .swiper-btn{
- height: 460px;
- width:calc(1226px - 234px);
- position: absolute;
- right: 0;
- top: 0;
- }
- .swiper-content .swiper-btn .arr-btn{
- position: absolute;
- top: 50%;
- margin-top: -35px;
- width: 100%;
- }
- .swiper-content .swiper-btn .arr-btn div{
- width: 41px;
- height: 69px;
- background-image: url("../img/icon-slides.png");
- }
- .swiper-content .swiper-btn .arr-btn .arr-left{
- float: left;
- background-position:-84px 0;
- }
- .swiper-content .swiper-btn .arr-btn .arr-left:hover{
- background-position:0 0;
- }
- .swiper-content .swiper-btn .arr-btn .arr-right{
- float: right;
- background-position:-125px 0;
- }
- .swiper-content .swiper-btn .arr-btn .arr-right:hover{
- background-position:-42px 0;
- }
- .swiper-content .swiper-btn .dot-btn{
- position: absolute;
- bottom: 20px;
- right: 30px;
- }
- .swiper-content .swiper-btn .dot-btn li{
- width: 6px;
- height: 6px;
- border: 2px solid hsla(0, 0%, 100%, .3);
- background-color: rgba(0,0,0,.4);
- border-radius: 50%;
- float: left;
- margin:0 5px;
- }
- .swiper-content .swiper-btn .dot-btn li:hover{
- background: hsla(0, 0%, 100%, .4);
- border:2px solid rgba(0, 0, 0, .4);
- }
- .swiper-content .swiper-btn .dot-btn li.active{
- background: hsla(0, 0%, 100%, .4);
- border:2px solid rgba(0, 0, 0, .4);
- }
- /* 轮播图 end */
|