diff --git a/css/style.css b/css/style.css index 130a734..c39771c 100644 --- a/css/style.css +++ b/css/style.css @@ -605,6 +605,7 @@ .pull-banner{ height: 574px; position: relative; + overflow: hidden; } .pull-banner>img{ width: 100%; @@ -628,18 +629,35 @@ display: block; font-size: 42px; line-height: 1.2; + display: block; + overflow: hidden; + white-space: nowrap; + text-overflow:ellipsis; } .banner-content .banner-txt h1{ font-size: 48px; line-height: 1.5; + display: block; + overflow: hidden; + white-space: nowrap; + text-overflow:ellipsis; } .banner-content .banner-txt p{ font-size: 22px; line-height: 1.5; margin-top: 10px; + display: block; + overflow: hidden; + white-space: nowrap; + text-overflow:ellipsis; +} +.banner-content .banner-img{ + width: 370px; + height: 370px; + overflow: hidden; } - .banner-content .banner-img img{ + width: 100%; height: 370px; } /* 子导航 */