From 1e4688d1726532773c429e2caaba250337b24e70 Mon Sep 17 00:00:00 2001 From: liuqimichale <123456lq> Date: Wed, 26 Sep 2018 11:06:25 +0800 Subject: [PATCH] 首页自适应 --- index.html | 10 +++++----- js/nav-footer.js | 2 +- style.css | 29 ++++++++++++++++++++++++++++- 3 files changed, 34 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index 4882f1f..12a7106 100755 --- a/index.html +++ b/index.html @@ -129,10 +129,10 @@
@@ -219,6 +219,6 @@ - + diff --git a/js/nav-footer.js b/js/nav-footer.js index d99edc4..555a4bd 100644 --- a/js/nav-footer.js +++ b/js/nav-footer.js @@ -8,7 +8,7 @@ var headerHtmls='
' + '' + 'logo.png' + 'logoname.png' + - 'logotitle.png' + + 'logotitle.png' + '' + '
' + '
' + diff --git a/style.css b/style.css index 15beefb..bd7cab7 100755 --- a/style.css +++ b/style.css @@ -784,9 +784,16 @@ a:hover{ padding-left: 20px; margin-bottom: 10px; font-size: 16px; + text-align: center; +} +.features-container li span{ position: relative; + width: 10px; + height: 10px; + display: inline-block; } -.features-container li:before{ + +.features-container li span:before{ content: ''; width:6px; height:6px; @@ -2552,3 +2559,23 @@ a:hover{ left: 0px; } + + +/*适应规则*/ +@media screen and (max-width: 992px){ + /*logotitle消失*/ + .logotitle{ + display: none; + } + .swiper-slide-large,.swiper-slide-middle{ + text-align: center; + } + .swiper-slide-more{ + margin: 0 auto; + } + #features .feature-left img{ + width: 80%; + margin: 0 auto; + } +} + -- libgit2 0.21.4