 |
สอบถามเรื่องการเขียน CSS ให้ทับ CSS ที่มีอยู่แล้วครับ |
|
 |
|
|
 |
 |
|
ตอบความคิดเห็นที่ : 1 เขียนโดย : mr.win เมื่อวันที่ 2016-07-02 21:39:46
รายละเอียดของการตอบ ::
ขอบคุณมากครับ
แล้วพอจะมีวิธีที่จะเขียนให้มันไม่สนใจสิ่งที่อยู่ในปีกกาได้มั้ยครับ เช่น
Code
@media screen and (min-width: 1218px) {
.archive-header,
.comments-area,
.image-navigation,
.page-header,
.page-content,
.post-navigation,
.site-content .entry-header,
.site-content .entry-content,
.site-content .entry-summary,
.site-content footer.entry-meta {
margin-right: 54px;
}
.full-width .archive-header,
.full-width .comments-area,
.full-width .image-navigation,
.full-width .page-header,
.full-width .page-content,
.full-width .post-navigation,
.full-width .site-content .entry-header,
.full-width .site-content .entry-content,
.full-width .site-content .entry-summary,
.full-width .site-content footer.entry-meta {
margin-right: auto;
}
}
Code
//override all
@media screen and (min-width: 1218px) {
/*โค้ดที่ทำให้สิ่งที่อยู่ในปีกกาข้างบนไม่แสดงผล*/
}
ประเด็นคือผมไม่ได้ต้องการแก้ไข style นี้ แต่ผมต้องการที่จะไม่ใช้ style นี้เลยครับ
ถ้ามีวิธีที่สามารถทำได้ ช่วยแนะนำทีนะครับ
ขอบคุณครับ
|
ประวัติการแก้ไข 2016-07-03 14:36:38
 |
 |
 |
 |
Date :
2016-07-03 14:31:08 |
By :
tconline |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลองเพิ่ม !important ต่อท้ายไปที่ Css ที่คุณเขียนใน Custom CSS Options
Code (PHP)
@media screen and (min-width: 1218px) {
.archive-header,
.comments-area,
.image-navigation,
.page-header,
.page-content,
.post-navigation,
.site-content .entry-header,
.site-content .entry-content,
.site-content .entry-summary,
.site-content footer.entry-meta {
/*margin-right: 54px;*/
margin-right: 0px !important;
}
.full-width .archive-header,
.full-width .comments-area,
.full-width .image-navigation,
.full-width .page-header,
.full-width .page-content,
.full-width .post-navigation,
.full-width .site-content .entry-header,
.full-width .site-content .entry-content,
.full-width .site-content .entry-summary,
.full-width .site-content footer.entry-meta {
/*margin-right: auto;*/
margin-right: 0px !important;
}
}
|
 |
 |
 |
 |
Date :
2016-07-04 09:20:36 |
By :
9nonameman |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|