Authored by 李靖

格式化css

.guang-detail-c {
max-width: 750px;
width: 100%;
overflow: hidden;
background-color: #f0f0f0;
margin:0 auto;
max-width: 750px;
width: 100%;
overflow: hidden;
background-color: #f0f0f0;
margin: 0 auto;
}
.clearfix:after {
content: '';
content: "";
display: block;
clear: both;
}
.guang-detail-c .editor-info {
width: 100%;
height: 65px;
border-bottom: 1px solid #e0e0e0;
padding: 0 20px;
background-color: #fff;
width: 100%;
height: 65px;
border-bottom: 1px solid #e0e0e0;
padding: 0 20px;
background-color: #fff;
}
.editor-info .pic {
border-radius: 50%;
overflow: hidden;
margin-top: 10px;
width: 45px;
height: 45px;
float: left;
border-radius: 50%;
overflow: hidden;
margin-top: 10px;
width: 45px;
height: 45px;
float: left;
}
.editor-info .name {
line-height: 65px;
float: left;
font-size: 14px;
color: #000;
padding-left: 20px;
line-height: 65px;
float: left;
font-size: 14px;
color: #000;
padding-left: 20px;
}
.editor-info .intro {
line-height: 65px;
float: left;
font-size: 14px;
color: #b0b0b0;
padding-left: 20px;
line-height: 65px;
float: left;
font-size: 14px;
color: #b0b0b0;
padding-left: 20px;
}
.article-info {
padding: 10px 20px;
background-color: #fff;
padding: 10px 20px;
background-color: #fff;
}
.article-info .name {
line-height: 30px;
line-height: 30px;
font-size: 20px;
color: #000;
font-weight: bold;
clear: both;
font-weight: bold;
clear: both;
}
.article-info .view-c {
color: #b0b0b0;
font-size: 12px;
line-height: 30px;
color: #b0b0b0;
font-size: 12px;
line-height: 30px;
}
.guang-content {
padding: 0 20px 20px;
background-color: #fff;
float: left;
margin-bottom: 20px;
box-sizing: border-box;
width: 100%;
padding: 0 20px 20px;
background-color: #fff;
float: left;
margin-bottom: 20px;
box-sizing: border-box;
width: 100%;
}
.guang-content p {
padding: 5px 0;
padding: 5px 0;
}
.guang-content .pic {
clear: both;
margin: 0 auto;
display: block;
max-width: 100%;
clear: both;
margin: 0 auto;
display: block;
max-width: 100%;
}
.related-goods {
float: left;
float: left;
width: 100%;
background-color: #fff;
background-color: #fff;
}
.related-goods .good-item {
width: 100%;
border-top: 1px solid #e0e0e0;
float: left;
padding: 20px 0;
border-top: 1px solid #e0e0e0;
float: left;
padding: 20px 0;
}
.related-goods .good-item .pic {
width: 25%;
float: left;
width: 25%;
float: left;
}
.pic-mip {
max-width: 100%;
max-width: 100%;
}
.related-goods .good-item .info {
width: 70%;
float: left;
margin-left: 5%;
width: 70%;
float: left;
margin-left: 5%;
}
.related-goods .good-item .name {
color: #000;
padding: 10px 0;
font-size: 14px;
display: -webkit-box;
color: #000;
padding: 10px 0;
font-size: 14px;
display: -webkit-box;
-webkit-line-clamp: 3;
overflow: hidden;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
line-height: 25px;
}
.related-goods .good-item .price{
color: #d62927;
font-size: 14px;
.related-goods .good-item .price {
color: #d62927;
font-size: 14px;
}
.more-goods {
height: 40px;
line-height: 40px;
clear: both;
border-top: 1px solid #e0e0e0;
border-bottom: 1px solid #e0e0e0;
font-size: 16px;
background-color: #fff;
padding: 0 20px;
display: block;
height: 40px;
line-height: 40px;
clear: both;
border-top: 1px solid #e0e0e0;
border-bottom: 1px solid #e0e0e0;
font-size: 16px;
background-color: #fff;
padding: 0 20px;
display: block;
}
.recommend-goods {
width: 100%;
overflow-x: scroll;
width: 100%;
overflow-x: scroll;
overflow-y: hidden;
margin: 20px 0;
background-color: #fff;
-webkit-overflow-scrolling: touch;
}
.good-scroll {
height: 133px;
margin: 20px 0;
overflow: hidden;
display: inline-flex;
height: 133px;
margin: 20px 0;
overflow: hidden;
display: inline-flex;
padding-right: 20px;
}
.recommend-goods .good-item {
float: left;
position: relative;
width: 100px;
margin-left: 20px;
}
.recommend-goods .good-item .price{
width: 100px;
height: 20px;
color: #fff;
text-align: center;
line-height: 20px;
position: absolute;
bottom: 0;
left: 0;
background-color: #000;
opacity: 0.7;
float: left;
position: relative;
width: 100px;
margin-left: 20px;
}
.recommend-goods .good-item .price {
width: 100px;
height: 20px;
color: #fff;
text-align: center;
line-height: 20px;
position: absolute;
bottom: 0;
left: 0;
background-color: #000;
opacity: 0.7;
}
.related-brand {
background-color: #fff;
background-color: #fff;
}
.brand-c {
width: 100%;
float: left;
background-color: #fff;
width: 100%;
float: left;
background-color: #fff;
}
.related-brand .title {
line-height: 60px;
text-align: center;
color: #000;
font-size: 18px;
background-color: #fff;
line-height: 60px;
text-align: center;
color: #000;
font-size: 18px;
background-color: #fff;
}
.brand-item {
width: 20%;
margin: 10px 2.5%;
float: left;
width: 20%;
margin: 10px 2.5%;
float: left;
}
.brand-item p {
font-size: 13px;
font-size: 13px;
color: #babac2;
line-height: 20px;
text-align: center;
... ... @@ -184,86 +212,100 @@
text-overflow: ellipsis;
white-space: nowrap;
}
.brand-tag {
border-top: 1px solid #e0e0e0;
float: left;
background-color: #fff;
width: 100%;
padding-bottom: 20px;
padding-right: 20px;
box-sizing: border-box;
}
.brand-tag .tag{
background-color: #444;
float: left;
color: #fff;
line-height: 30px;
padding: 0 10px;
margin: 20px 0 0 20px;
border-top: 1px solid #e0e0e0;
float: left;
background-color: #fff;
width: 100%;
padding-bottom: 20px;
padding-right: 20px;
box-sizing: border-box;
}
.brand-tag .tag {
background-color: #444;
float: left;
color: #fff;
line-height: 30px;
padding: 0 10px;
margin: 20px 0 0 20px;
}
.related-info {
margin: 20px 0;
padding: 20px;
background-color: #fff;
float: left;
padding-bottom: 0;
margin: 20px 0;
padding: 20px;
background-color: #fff;
float: left;
padding-bottom: 0;
}
.related-info .info-item {
width: 100%;
float: left;
margin-bottom: 20px;
width: 100%;
float: left;
margin-bottom: 20px;
}
.related-info .info-item .pic {
width: 35%;
float: left;
width: 35%;
float: left;
}
.related-info .info-item .info {
width: 60%;
margin-left: 5%;
float: left;
width: 60%;
margin-left: 5%;
float: left;
}
.related-info .info-item .title{
display: -webkit-box;
.related-info .info-item .title {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
word-break: break-all;
overflow: hidden;
line-height: 20px;
line-height: 20px;
}
.related-info .info-item .time {
color: #b0b0b0;
line-height: 22px;
color: #b0b0b0;
line-height: 22px;
}
.big-pic {
position: relative;
margin-bottom: 3px;
clear: both;
position: relative;
margin-bottom: 3px;
clear: both;
}
.small-pic {
position: relative;
margin-bottom: 3px;
width: 100%;
position: relative;
margin-bottom: 3px;
width: 100%;
}
.small-pic .pic {
float: left;
width: 50%;
clear: none;
max-width: 50%;
float: left;
width: 50%;
clear: none;
max-width: 50%;
}
.tag-list-box {
width: 100%;
left: 0;
width: 100%;
left: 0;
bottom: 0;
position: absolute;
padding: 10px;
}
.label-box {
clear: both;
clear: both;
}
.lable-info-box {
font-size: 12px;
background-color: rgba(0, 0, 0, 0.6);
color: #fff;
font-size: 12px;
background-color: rgba(0, 0, 0, 0.6);
color: #fff;
padding: 0 5px;
border-radius: 15px;
float: left;
... ... @@ -275,13 +317,15 @@
white-space: nowrap;
margin-top: 5px;
}
.lable-info-box a {
color: #fff;
overflow: hidden;
color: #fff;
overflow: hidden;
text-overflow: ellipsis;
}
.lable-focus {
float: left;
float: left;
display: flex;
align-items: center;
line-height: 25px;
... ... @@ -289,6 +333,7 @@
margin-right: 15px;
margin-top: 5px;
}
.lable-focus .focus-big {
display: flex;
align-items: center;
... ... @@ -300,8 +345,9 @@
-webkit-justify-content: center;
justify-content: center;
}
.lable-focus .focus-small {
width: 17px;
width: 17px;
height: 17px;
border-radius: 17px;
background: rgba(253, 157, 43, 1);
... ... @@ -309,5 +355,3 @@
transform: scale(0.5, 0.5);
margin: 0;
}
... ...