กรุณาปิด โปรแกรมบล๊อกโฆษณา เพราะเราอยู่ได้ด้วยโฆษณาที่ท่านเห็น
Please close the adblock program. Because we can live with the ads you see


iC@fe

วิธีการทํา Mobile logo header

  • ผู้เริ่มหัวข้อ ผู้เริ่มหัวข้อ iC@fe 
  • วันที่เริ่มต้น วันที่เริ่มต้น

iC@fe 

Administrator

สมาชิกทีมงาน
Admin
เข้าร่วม
21 พฤษภาคม 2009
ข้อความ
1,677
คะแนนปฏิกิริยา
238
คะแนน
63
Would you like to have a mobile header with logo like this?

cxf_mobile_logo_demo-gif.gif



As you can see you can have a mobile header, but when you scroll the logo will show in the navigation.

To achieve this add code below to extra.less template:

Less:
/* [cXF] Mobile logo header */
@media (max-width: @xf-responsiveMedium) {
.has-js .p-header {
display: initial;
}
.p-header-logo {
max-width: 100%;
margin: 0 auto;
}
.p-header-logo.p-header-logo--image img {
max-height: 80px;
}
.has-js .p-nav-smallLogo {
opacity: 0;
transition: all .25s ease;
}
.p-navSticky.is-sticky .p-nav-smallLogo {
opacity: 1;
transition: all .25s ease;
}
/* to hide icons in header if you're using [cXF] Icons in Header add-on */
.cxf_icons_header_container {
display: none;
}
}
/*****/

 

ไฟล์แนบ

  • cxf_mobile_logo_demo-gif.gif
    cxf_mobile_logo_demo-gif.gif
    351.8 กิโลไบต์ · จำนวนการดู: 316

กระทู้ที่คล้ายกัน

ตอบกลับ
0
จำนวนการดู
393
ตอบกลับ
0
จำนวนการดู
719
ตอบกลับ
0
จำนวนการดู
394
ตอบกลับ
0
จำนวนการดู
363
  • บทความ บทความ
ตอบกลับ
0
จำนวนการดู
577

กรุณาปิด โปรแกรมบล๊อกโฆษณา เพราะเราอยู่ได้ด้วยโฆษณาที่ท่านเห็น
Please close the adblock program. Because we can live with the ads you see
กลับ
ยอดนิยม