diff --git a/css/style.css b/css/style.css index 8d2b4a3..3024253 100644 --- a/css/style.css +++ b/css/style.css @@ -2430,13 +2430,11 @@ padding: 0 4%; font-size: 12px; line-height: 40px; - display: -webkit-box; - /* 用省略号代替 */ - text-overflow: ellipsis; - -webkit-box-orient: vertical; - word-break: break-all; - -webkit-line-clamp: 1; + display: inline-block; + white-space: nowrap; + width: 100%; overflow: hidden; + text-overflow:ellipsis; } .pull-position .left img{ height: 12px; @@ -2581,10 +2579,16 @@ .product-txt h3, .product-detail-txt h3{ font-size: 22px; color: #007EC0; + display: inline-block; + white-space: nowrap; + width: 100%; + overflow: hidden; + text-overflow:ellipsis; } .product-txt h4, .product-detail-txt h4{ font-size: 22px; color: #E73F7C; + display: -webkit-box;-webkit-line-clamp: 2;word-break: break-all;overflow: hidden;text-overflow: ellipsis;-webkit-box-orient: vertical; } .product-txt em, .product-detail-txt em{ width: 220px;