Discuz Thai

 ลืมรหัสผ่าน
 สมัครสมาชิก

ข้อตกลงการใช้งานกระดานข่าวดิสคัสไทย DiscuzThai Agreement (English Version) ประกาศดิสคัสไทย - ทำเนียบดิสคัสภาษาไทย

Discuz! X3.5 Thai R20231001 Rev.8 (NEW) [วิดีโอช่วยสอน] อัปเกรด Discuz! X3.4 เป็น X3.5 Discord ของ Discuz! Thai Community อย่างเป็นทางการ

Discuz! X3.4 Thai R20220811 (REV.75) สิ้นสุดการสนับสนุน Discuz! X3.4 ภาษาไทยตั้งแต่วันนี้เป็นต้นไป (ขอแนะนำให้อัปเกรดเป็น X3.5 แทน)

ค้นหา
แท็กยอดนิยม: ดิสคัสภาษาไทย Discuz Thai
ดู: 2172|ตอบกลับ: 10

วิธีทำให้เว็บเราเป็น Responsive

[คัดลอกลิงก์]
pphum โพสต์ 2016-3-14 16:12:04 |โหมดอ่าน
ไปที่ template\ชื่อธีม\common\common.css

แล้ววางโค้ด ทั้งหมดนี่ต่อท้ายครับ บันทึก แล้วอัพเดตแคส

  1. body#space .mn { float: left!important; width: 760px!important; display: inline;margin-left:10px;margin-bottom: 1em;}
  2. body#space .sd { float: right;margin-right:10px; width: 180px; overflow: hidden; _overflow-y: visible; }
  3. body#space .wp { margin: 0 auto; width: 970px; min-width:970px; }
  4. body#space #wp { width: 960px; min-width:960px; }
  5. body#space #hd {width: 948px;min-width: 948px;margin-top: 30px; border-bottom: {HEADERBORDER} solid {SPECIALBORDER}!important; {HEADERBGCODE} }
  6. body#space #hd .wp { padding: 10px 0 0; }
  7. body#space .bm{background: #FFF;zoom: 1;border: 1px solid #CDCDCD;}
  8. body#space .bm_h{padding: 0 10px;height: 31px;border-top: 1px solid #FFF;border-bottom: 1px solid #C2D5E3;background: #F2F2F2;line-height: 31px;white-space: nowrap;overflow: hidden;}
  9. body#space #pcd {padding: 15px 0 15px 0;}
  10. body#space .area {padding: 0 5px;}


  11. .wp { width: 100%; }
  12.         #hd .wp, #wp { min-width: 1094px; }

  13. .ct2 { margin-right: 320px; }
  14.         .ct2 .sd { margin-right: -320px; }
  15.                 .ie7 .ct2 .sd { margin-left: 20px; }
  16.                 .ie6 .ct2 .sd { padding-left: 20px; position: relative; }
  17.         .ct2 .mn { width: 100%; }

  18. .ct2 #chart, .ct2 #an { margin-right: -320px; }
  19.         .ie6 .ct2 #chart, .ie6 .ct2 #an { position: relative; }

  20. .ct2_a { padding-left: 150px; }
  21.         .ct2_a .appl { margin-left: -150px; }
  22.                 .ie6 .ct2_a .appl { position: relative; display: inline; }
  23.         .ct2_a .mn { width: 98%; }
  24.         #nv_userapp .ct2_a .mn, .ct2_a_r .mn { width: 99%; }

  25. .ct3_a { padding: 0 320px 0 160px; }
  26.         .ct3_a .appl { margin-left: -160px; }
  27.                 .ie6 .ct3_a .appl, .ie6 .ct3_a .sd { display: inline; }
  28.         .ct3_a .sd { margin-right: -320px; }
  29.         .ct3_a .mn { margin: 0; width: 100%; }

  30. #nv, #mu { border-left: 1px solid {COMMONBORDER}; border-right: 1px solid {COMMONBORDER}; }

  31. #nv { background-repeat: repeat-x; background-position: 0 -33px; }

  32. #mu ul { border-bottom: 1px solid {COMMONBORDER}; background-image: none; background-color: {COMMONBG}; }

  33. .pg_post .ct2_a { margin-left: 0; padding-left: 0; }
  34.         .pg_post .ct2_a .appl { margin-left: 0; background: none; }
  35. .pg_modcp .ct2_a, .pg_announcement .ct2_a { border: none; }
  36.         .pg_modcp .ct2_a .mn, .pg_announcement .ct2_a .mn { margin-right: 0; padding-top: 0; }

  37. .tdats .tdat { width: 20%; }
  38. .tdats .tfxf { width: 79.5%; }
  39. .tdats .tfx, .tdats .tb, .tscr { width: 39.5%; }
  40.         .tscr .tdat, .tscr .tdat th, .tscr .tdat td { width: 99%; }

  41. .widthauto #toptb #diy-tg_menu { margin: -7px 0 0 -1px; }
  42. .widthauto .switchwidth { background-position: 100% -18px; }
  43. .widthauto .switchwidth:hover { background: url({IMGDIR}/switch_width.png) no-repeat 100% -54px; }


  44. @media screen and (max-width:1430px) {
  45.         body { background:#e2e5e9 url({IMGDIR}/a1.gif) fixed;}
  46.         * html body { background-color:#e2e5e9; background-image:none;}
  47.         #page_main {margin:0 auto; width:1200px;}
  48.         #page_main .insite_bg{ min-height:1080px; float:left;width:1200px; padding:0 0 30px 0; background:#fff url({IMGDIR}/bg1.gif) repeat-y 0 0;}
  49.         .effects_box { margin: 0 auto; height:580px; overflow: hidden;}
  50.         .right_hot li{float:left;width:370px!important;}
  51.         .right_hot li a{width:285px!important;}
  52.         .right_hot li em{padding:0 0 0 0!important;}
  53.        
  54.         .box_in3 {height:388px; overflow:hidden;}
  55.         .art_listbox_3, .art_listbox_4{width:50%;}
  56.         * html .art_listbox_3, * html .art_listbox_4{width:50%;}
  57.         *+html .art_listbox_3, *+html .art_listbox_4{width:50%;}
  58.         }
  59. @media screen and (max-width:1590px) {
  60.         .right_hot li{float:left;width:50%;}
  61.         }

  62. @media screen and (max-width:1890px) { .effects_box_in { margin:0 auto; width:1537px;} * html .effects_box_in { margin:0 auto; width:auto;}}
  63. @media screen and (max-width:1640px) { .effects_box_in { margin:0 auto; width:1281px;} * html .effects_box_in { margin:0 auto; width:auto;}}
  64. @media screen and (max-width:1435px) { .effects_box_in { margin:0 auto; width:1025px;} * html .effects_box_in { margin:0 auto; width:auto;}}
  65. @media screen and (max-width:768px) {
  66. html, body{ background-image:none; background-color:transparent; margin:0; padding:0; height:100%; font-size:15px; font-family:Microsoft YaHei, Helvetica, sans-serif; -webkit-text-size-adjust: none;}
  67. h1, h2, h3, h4, h5, h6, p, th, td { font-size: 15px; -webkit-text-size-adjust: none;}
  68. input,select,textarea,button { font-size: 15px; -webkit-text-size-adjust: none; font-family:Microsoft YaHei, Helvetica, sans-serif; }
  69. #scrolltop { visibility: hidden; position: fixed; bottom: 5px; display: block; margin: -30px 0 0 -15px!important; width: 40px; background: #faefe6; border: 1px #e6b38f solid; border-radius: 3px; border-top: 0; cursor: pointer; }
  70. #scrolltop a { background: url({IMGDIR}/scrolltop.png) no-repeat 0 0; border-top: 1px #e6b38f solid!important; }
  71. #pt { display:none;}
  72. .pcht { width: auto !important; }
  73. .pdbts_0 a {width: 40px !important;}
  74. .tl th .someinfobox *{ font-size:12px; color: #96a0b4 !important;}
  75. .tl th .someinfobox em{padding:0 5px 0 0 !important;}
  76. .tl .frm {width: 1px !important; text-indent:-5000px; overflow:hidden;}
  77. .tb .a a, .tb .current a { white-space: nowrap;}
  78. .nfl .f_c { margin: 30px auto!important; padding: 10px!important; width: 90%!important; border: 3px solid {COMMONBG}; background: {WRAPBG}; }
  79. .fwin .rfm, .nfl .f_c .rfm {width: auto;}
  80. .rfm .px {width: 100px!important;}
  81. .rfm th {padding-right: 10px;width: 70px!important;white-space: nowrap;text-align: right;}
  82. .xst { font-size: 15px!important; }

  83. #uhd {padding-top: 0;border: 0;background:transparent; margin:0 auto;}
  84. #uhd .h {padding-left: 0; margin:0 auto;}
  85. #uhd .h p{padding-left: 0; margin:0 auto; width:auto; text-align:center;}
  86. #uhd .avt {display: block;float: none;margin: 0 auto;width:210px;text-align:center;}
  87. #uhd .mt {padding: 10px 0;font-size: 16px;width:210px;text-align:center;margin: 0 auto;display: block;}
  88. #uhd .avt img {padding: 2px;width: 120px;height: 120px;background: #FFF;border: 4px solid;border-color: #f3f4f7;border-radius: 66px;}
  89. #uhd .mn { display:none;}
  90. #uhd .flw_hd {float: none;width: 260px;margin:0 auto;margin-bottom: 0;}
  91. #uhd .flw_hd th, #uhd .flw_hd td{text-align:center!important; padding:0 15px;}
  92. #fastpostform {width: 100%!important;}
  93. .flw_article img{ max-width:100%!important;}

  94. /* 发特殊主题帖 by dfox */
  95. .sinf {width: auto !important;}
  96. .sinf p, .sadd p {padding: 2px 0;height: 30px;line-height: 30px;}
  97. .sinf .px {width: 50% !important;}
  98. .sinf .pxs {width: 20px !important;}
  99. .sadd .px {width: 50px !important;}
  100. .sinf {float: left;padding-right: 0px !important;width: 380px;border-right: 0 !important;}
  101. .sinf h4 {padding: 6px 0;}
  102. .sinf textarea {width: auto !important;height: 80px;}
  103. .sinf a.d {margin-top: 8px;}
  104. .sinf object {vertical-align: middle;display:none;}
  105. .onum {float: left;margin-right: 6px;width: 16px;}
  106. .oinf {width: 270px !important;}
  107. .sinf dl, .sadd dl {overflow: hidden;}
  108. .sinf dl dt, .sadd dl dt {float: left;padding-top: 3px\9;width: 75px;clear: left;}
  109. .sinf dl dd, .sadd dl dd {margin-bottom: 10px;overflow: hidden;}
  110. .sinf dl dd {width:  auto !important;}
  111. .sinf span.fb, .sadd span.fb {display: block;float: left;margin-right: 6px;height: 26px;line-height: 26px;white-space: nowrap;}
  112. .sinf dl dd strong {padding: 0 8px;}
  113. .sadd {float: left;margin-left: 10px;width: auto !important;overflow: hidden;}
  114. .sadd dl dd {width: 420px;}
  115. .ct2_a .sadd {width: 360px;}
  116. .ct2_a .sadd dl dd {width: 260px;}
  117. .spl em {float: left;margin-right: 9px;height: 20px;line-height: 20px;}
  118. .spl input[type=radio] {margin: 0 3px 0 0;}
  119. .spimg {margin: 0 10px 0 0;width: 200px;border: 1px solid #AAA;}
  120. .spmp {width: 30px;}
  121. .spmf {width:  auto !important;}
  122. .spmf, .spmf3 {overflow: hidden;_height: 1%;}
  123. .spmf label, .spmf3 label {display: block;padding-top: 5px;}
  124. .spmf em {float: left;width: 150px;}
  125. .spmf3 em {float: left;margin-right: 12px;}
  126. .spmf3 .px {margin: 0 !important;width: 72px;}

  127. /** end **/

  128. /*活动、商品*/
  129. .act {}
  130. .act .c { line-height: 28px; font-size: 14px; }
  131. .spvimg { text-align:left; margin:0 auto; padding:0 0 20px 0!important; width:auto!important;background:none !important; border:0 !important;}
  132. .spvimg  img{ max-width:90%!important;width:auto!important; height:auto!important;}
  133. .spvimg em.hot { width: 120px; height: 102px; background-position: 0 -104px; }
  134. .spi { margin-left: 0 !important; clear:both; width:100%; margin:0 auto; float:left;}
  135. .trdc { margin-top: 20px; background: #8e92a0!important;border-radius: 4px; height: 30px; line-height: 30px; color: {LIGHTLINK}; }
  136. /** end **/

  137. .sslct_btn {font-size: 12px;}
  138. .left_menubox{ width:8px;float:left;margin:0;padding:0;position:relative;}
  139. .left_menubox .in{display:none;}
  140. .left_menubox .online_user{ display:block; text-indent:1.2em; background:url({IMGDIR}/a8.png) no-repeat 0 50%;}
  141. .page_contentbox {margin:0 0 0 18px;padding:0 10px 0 0;min-width: inherit;}
  142. #page_main {margin:0 auto; width:auto;}
  143. #page_main .insite_bg{ min-height:1080px; width:100%;margin:0 auto; padding:0 0 30px 0; background:#fff url({IMGDIR}/bg1.gif) repeat-y -64px 0;}
  144. #hd .wp, #wp { min-width:inherit; }
  145. #toptb {min-width: inherit;width: auto;}
  146. #qmenu{display:none;}
  147. #nv1 i, #nv2 i, .top_bgimg {display:none;}
  148. #nv1, #nv2 { height:38px; background:none; clear:both; overflow:hidden; margin-bottom:20px;}

  149. .mobile_on { display: block;}
  150. .mobile_hidden{display:none!important;}

  151. .box_in3 {height: auto; overflow:hidden; padding:20px 0 0 0;}
  152. .art_listbox_3, .art_listbox_4{width:100%; clear:both;border-radius: 6px;}

  153. .effects_box { clear:both; margin: 0 auto; height: auto; overflow: hidden; }
  154. .effects_box_in { margin:0 auto; width:442px;}
  155. .effects_box .img_box {float: left; margin:0 auto; display:inline;width:200px;padding:10px; overflow:hidden;}
  156. .effects_box .box_in{display:block;width:200px;height:265px;border:#e3e8ee 1px solid;overflow:hidden;box-shadow: 2px 2px 2px #e3e8ee;border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px;}

  157. .cbp-spmenu {position: absolute;top:0;left:0;display:block;float:left;width: 150px;background: #fe6400;min-height:960px;}
  158. .cbp-spmenu h3 {color: #ffc49b;font-size: 24px;padding:0 0 0 20px;height:78px;line-height:78px;margin: 0;font-weight: 700;background: #b63300;}
  159. .cbp-spmenu a {display: block;color: #fff;font-size: 16px;font-weight: 400;}
  160. .cbp-spmenu a:hover {background: #fe6400;}
  161. .cbp-spmenu-vertical {width: 150px; display:block;height: 100%;top: 0;z-index: 1000;}
  162. .cbp-spmenu-vertical a {border-bottom: 1px solid #ee4b00;background: #fe6400;padding:12px 8px 12px 1em;display: block;height:25px;white-space: nowrap; overflow: hidden;text-overflow: ellipsis;line-height:25px;}
  163. .cbp-spmenu-left {left: -150px;position:relative;}
  164. .cbp-spmenu-left.cbp-spmenu-open {left: 0px;}
  165. .cbp-spmenu-right.cbp-spmenu-open {right: 0px;}
  166. .cbp-spmenu-push-toright {left: 150px;}
  167. .cbp-spmenu, .cbp-spmenu-push {-webkit-transition: all 0.3s ease;-moz-transition: all 0.3s ease;transition: all 0.3s ease;}
  168. .main {top:78px;left:150px;z-index: 1001;}
  169. .main > section {max-width: 25px;margin:0;}
  170. .main > section button {border: none;background: #fe6400 url({IMGDIR}/a2.png) no-repeat 4px 50%;padding: 0;display: block;width: 25px;height:50px;cursor: pointer;margin: 0;border-radius: 0 25px 25px 0;position:fixed;top:82px;left:0;}
  171. .main > section button.active {border: none;background: transparent url({IMGDIR}/a3.png) no-repeat 100% 50%;padding: 0;display: block;width: 135px;height:50px;cursor: pointer;margin: 0;border-radius: 0 0 0 0;position: absolute;top:16px;left:0;}
  172. .main > section button a {border: none;background-color:transparent;width: 25px;height:50px;display:block;float:left;}
  173. .main > section button a:hover {border: none;background:none;}
  174. .responsive-menu, .responsive-menu select {display: block;clear:both;}
  175. .responsive-menu {text-align: center;}
  176. .responsive-menu select {float: left;display: block;width: 100%;margin: 0;-webkit-appearance: button;-webkit-padding-end: 30px;-webkit-padding-start: 40px;-webkit-user-select: none;border: 1px solid #e3e8ee;border-top: 3px solid #e3e8ee;color: #4b4d54;font-size: 15px;overflow: hidden;padding:5px 20px 5px 20px;cursor: pointer;outline: none;background:#f4f5f7 url({IMGDIR}/a20.gif) no-repeat 100% 50%;border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px;}
  177. .responsive-menu select option{line-height:30px;height:30px;margin:5px auto;}
  178. .responsive-menu #mainnav {display:none;}
  179. .top_imgbottums {float:right;text-align:right;padding:5px 0 0 0;}
  180. .top_imgbottums img{height:34px;width:34px;margin:0;}
  181. .topuserbox h4 img{float:left; width:125px;}
  182. #myprompt_menu { position:fixed; left:-5000px;}
  183. .top_usermessages_a { font-size:12px; font-weight:700;-webkit-text-size-adjust: none; color:#fe6400; display: block; line-height:28px; height:28px;}
  184. .top_usermessages_a img{vertical-align:middle;}

  185. .in_list{clear:both; display:block; margin:0 auto;text-align:left; float:left; padding-bottom:6px;}
  186. .in_list a{ float:left; display:block; height:24px; line-height:24px;font-size:14px;font-weight:700;color:#fe6400;padding:0 10px; background:#eceff1;border-radius:12px; margin:0 4px 4px 0;white-space: nowrap;}
  187. .in_list a:hover{text-decoration:none;color:#fff; background:#a3a6ae;}

  188. .left_hot{ float:left; width:auto; clear:both; margin:0 auto;}
  189. .right_hot{ margin:0; clear:both; float:left; padding-bottom:10px;}
  190. .right_hot_in{ margin:0; float:left; display:block;height: auto; overflow:;padding:0;}
  191. .right_hot li{width:100%!important; height:24px; overflow:hidden; float: left;}
  192. .right_hot li a{width:auto!important;}

  193. .nTab {margin: 0 0 0 0; float:left;overflow:;width:auto;}
  194. .nTab .TabTitle { display:none;}
  195. .nTab .TabContent {width:auto;float:left; margin:0 auto;padding:0;height:auto;}
  196. .nTab .TabContent .text {float:left;width:auto;}
  197. .nTab .TabContent .text h1 {float:left;width:auto; overflow:hidden;}
  198. .nTab .TabContent .text h1 a {float:left;display:block;font-size:16px;width:auto;height: auto;line-height:24px; padding:10px 0; overflow:inherit;overflow:;color:#060606;}
  199. .nTab .TabContent .text .newsbox1 {clear:both;width:auto;float:left;}
  200. .nTab .TabContent .text .newsbox1 p {color:#808ba1;line-height:24px;height:auto; float:none; width:auto; padding:0 0 10px 0; border-bottom:#e3e8ee 1px solid;  margin-bottom:10px;}
  201. .nTab .TabContent .text .newsbox1 p a { clear:both; display:block; float:none; margin:0 auto; text-align:center; overflow:hidden;}
  202. .nTab .TabContent .text .newsbox1 p a img{ clear:both; display:block; float:none;margin:8px 0 15px 0;min-width:290px;height: auto;border-radius: 4px;}

  203. .box_in1{margin:0 auto; clear:both;width:auto;overflow:hidden;}
  204. .box_in1 .in{width: inherit;padding:0;margin:0 auto;float: none;}
  205. .box_in1 .box{width:auto; clear:both;padding:0 0 0 0;margin:0 auto; display:block; float:none;text-align:center;}
  206. .box_in1 .box1{width:auto; clear:both;padding:0 0 0 0;margin:0 auto; display:block; float:none;text-align:center;}

  207. .ct2 {margin-right: 0;}
  208. .ct2 .sd {display:none;}
  209. .ct2 .mn {width: 100%;}
  210. .art_listbox_1, .art_listbox_2 {width:100%;}
  211. .ct3_a {padding: 0 0 0 0;}
  212. .ct3_a .appl {margin-left: 0;}
  213. .ct3_a .sd {display:none;}
  214. .ct3_a .mn {margin: 0;width: 100%;}

  215. .article_title {clear:both;margin:0 auto;border-bottom:#e3e8ee 4px solid;border-top:#e3e8ee 1px solid;height: auto;line-height:26px; padding:10px 0;color:#fe6400;font-family: Microsoft YaHei, Segoe UI, Tahoma, Arial;font-size:24px;}
  216. .article_title_style_in{text-align:center;}
  217. #article_content { border-top:0; border-top:#f3f5f8 0px solid;}
  218. .vw .d img {width: 100%;}
  219. .yuan_img img{padding: 2px;width: 120px;height: 120px;background: #FFF;border: 4px solid;border-color: #f3f4f7;border-radius: 66px;}
  220. .tedt { width: 99%; border: 1px solid; border-color: #cfd4db;border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px; }
  221. .tedt textarea, .tedt .area{ background: transparent;}
  222. .ptn .pn {vertical-align: middle;overflow: hidden;margin: 0 auto;padding:0;height: 40px;line-height:40px;width:99%;color:#a50000;font-size:18px;border:#ffb27e 1px solid;background: #fec7a2 url({IMGDIR}/a23.gif) repeat-x 0 0;cursor: pointer;border-radius: 4px;-webkit-border-radius: 4px;-moz-border-radius: 4px;}
  223. .ptn .pn strong{ font-weight:400;}
  224. .ptn .pn:hover, .ptn .pn:active{background: #fec7a2 url({IMGDIR}/a23.gif) repeat-x 0 -50px;}

  225. td.num, td.by, td.o { width: 1px!important; overflow:hidden!important; text-indent:-9000px!important;}
  226. td.num cite, td.by cite, td.num em, td.by em, { display:none!important;}
  227. .tl th, .tl td.fn {padding-right: 0!important;zoom: 1;}
  228. .rightbox { display:none;}
  229. .v_leftbox {margin:0 0 0 0; padding:0 0 0 0;}
  230. .pct img{ max-width:100%;}
  231. #vfastpost #vf_m input{ border:0!important; padding-left:0!important; padding-right:0!important; background:none!important; width:90%!important;}
  232. #p_btn { display:none;}
  233. .attach_nopermission {width: auto!important;}
  234. .psth {width: 200px!important; }
  235. #newspecial_menu a { display: block; padding: 3px 0 3px 30px; font-size:14px;white-space: nowrap; }
  236. .ct_vw_mn { float: left; width: 100%!important; }

  237. .mlp li {width: 135px!important;}
  238. .ml li {float: left;padding: 5px 0!important;text-align: center;overflow: hidden;width: 125px!important;}

  239. .photo_pic { width:100%!important; }
  240. .photo_pic img{ width:auto; max-width:auto!important; }

  241. #moodfm{ width: 100%!important; }
  242. #moodfm table{ width: 100%!important; }
  243. #moodfm textarea { width: 100%!important; height: 48px; padding:4px; border: 1px solid; border-color:#cfd4db; overflow-y: auto;border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px; }
  244. .mi .moodfm_input { width: auto!important; height: 58px; background: {COMMONBORDER} url({IMGDIR}/mood_input.png) no-repeat 100% 0; }
  245. .moodfm_btn { width:68px; background: url({IMGDIR}/mood_input_btn.png) no-repeat 100% 0!important;}
  246. .cmt {margin: 10px 0 10px 0!important;}

  247. .ct2_a {padding-left: 0;}
  248. .ct2_a, .ct3_a {border: 0;background: none;}
  249. .ct2_a .appl {display:block;clear:both;margin:0 auto;width:100%;}
  250. .appl {overflow: visible;padding: 6px 0 1px 0;margin:0 auto;float:left;border-bottom:#e3e8ee 1px solid;}
  251. .ct2_a .mn {display: block;margin:0 auto;padding-top: 0;width: 100%;float: none;}
  252. .my_flw_stats {display:none;}
  253. .tbn {margin: 0;}
  254. .tbn .mt {padding: 5px 0;}
  255. .bbda {border-bottom:#e3e8ee 4px solid;margin-bottom:10px;}
  256. .tbn li {margin: 0 5px 5px 0;height: 22px;line-height:22px;border-bottom: 0;float:left;display:block;}
  257. .appl li {display: block;height: 28px;line-height: 28px;white-space: nowrap;word-wrap: normal;font-size: 14px;text-overflow: ellipsis;overflow: hidden;}
  258. .tbn li.a {margin: 0 5px 5px 0;padding: 0;border-top:0;border-bottom-style: none;background:transparent;}
  259. .tbn li.a a {display: block;float:left;height: 22px;line-height:22px;background:#8c8e98;padding:0 10px;color:#fff;}
  260. .tbn ul a {display: block;float:left;height: 22px;line-height:22px;background:#f0f1f5;padding:0 10px;border-radius: 4px;}
  261. #flw_header {padding:10px 0!important;}
  262. .pg_space .bm_c {padding: 10px 0!important;}
  263. .ct1 {border: 0;border-top: none;}
  264. .tl table th {width: 100%;}
  265. .ttp li {float: left;display:block;margin: 0 5px 5px 0;padding: 0!important;border: 0!important;font-size:14px!important;}
  266. .ttp li a {border-radius: 4px;float: left;display:block;margin:0;padding: 0 10px!important;height: 22px!important;line-height:22px!important;border: 0!important;background: #f0f1f5!important;white-space: nowrap;font-weight:400;font-size:14px!important;}
  267. .ttp li.a a {background: transparent!important;color:#fff!important;}
  268. .ttp li.a {background: #8c8e98!important;border-radius: 4px;}
  269. .notice_pm, .notice_mypost, .notice_interactive, .notice_system, .notice_manage, .notice_app { display:none;}
  270. .dopt .px{float: left;width:50%!important;}
  271. .tfm th {padding-top: 9px;padding-right: 5px;width: 10px;white-space: nowrap;}
  272. .tfm .pt, .tfm .px {margin-right: 3px;width: auto!important;}
  273. .dt th {white-space: nowrap; width:auto!important;}
  274. /*外加*/
  275. .t_f * { font-size:15px!important; font-style:normal!important;}
  276. .sign { display:none;}
  277. #wechat_float_qrcode, #jz52top { display:none;}
  278. #g_commend .xld dt{ display:none;}
  279. #g_commend .xld dd.xg1{ display:none;}
  280. #f_pst .pbt .px { width:96%!important;}
  281. .un_selector input {width:96%!important;}
  282. .pmform .tedt {width:90%!important;}

  283. #scform_srchtxt { width:150px!important;}
  284. #scform_tb a { margin: 0 12px 0 3px!important;}
  285. .slst { width: inherit!important; }
  286. #pic_v_big { clear:both; width: auto; margin:0 auto; overflow:hidden; }
  287. #pic_v_big img{ width:auto; margin:0 auto; max-width:100%!important;}
  288. .focus { display:none;}


  289. }

  290. @media screen and (max-width:470px) {
  291. .effects_box { clear:both; margin: 0 auto; height:auto; overflow: hidden; }
  292. .effects_box_in { margin:0 auto; width:256px;}
  293. .effects_box .img_box {float: left; margin:0 auto; clear:both;display:inline;width:256px;padding:10px 8px 10px 8px; overflow:hidden;}
  294. .effects_box .box_in{display:block;width:240px;height:265px;border:#e3e8ee 1px solid;overflow:hidden;box-shadow: 2px 2px 2px #e3e8ee;border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px;}
  295. }
คัดลอกไปที่คลิปบอร์ด




อย่าถามหาบัค เพราะมีแน่นอน มีเยอะด้วย 555 เอาไปลองไปปรับแต่งดูละกันนะครับ
beerqazasa โพสต์ 2016-3-14 17:31:32
อย่าลืมโค้ดนี้
  1. <meta name="viewport" content="width=device-width, initial-scale=1">
คัดลอกไปที่คลิปบอร์ด

ใส่ใน tag head
submark โพสต์ 2016-3-14 19:55:44
โค้ดนี้ใช้ไม่ได้กับทุกแม่แบบนะครับ
ผมลองแล้ว
BEFORE

AFTER
 เจ้าของ| pphum โพสต์ 2016-3-14 23:30:47
beerqazasa ตอบกลับเมื่อ 2016-3-14 17:31
อย่าลืมโค้ดนี้

ใส่ใน tag head

โอ้ลืมไปเลย ใช่ๆ
 เจ้าของ| pphum โพสต์ 2016-3-14 23:32:04
submark ตอบกลับเมื่อ 2016-3-14 19:55
โค้ดนี้ใช้ไม่ได้กับทุกแม่แบบนะครับ
ผมลองแล้ว
BEFORE

<meta name="viewport" content="width=device-width, initial-scale=1"> ใส่ตัวนี้ในแท็ค head ด้วยนะครับ
submark โพสต์ 2016-3-15 00:58:02
pphum ตอบกลับเมื่อ 2016-3-14 23:32
ใส่ตัวนี้ในแท็ค head ด้วยนะครับ

ใส่ไปเรียบร้อยตั้งแต่ครั้งแรกแล้วครับ เป็นอย่างที่โพสต์ไป
kingkitb โพสต์ 2016-3-15 07:17:37
Discuz ปกติไม่ได้ทำมาเพื่อ Responsive นะ
การแสดงผลทั้งเว็บจะล้นออกจากขนาดจออยู่ดี

เพิ่มเนื้อหา (2016-3-15 07:17):
ไม่งั้นต้องแก้ส่วนอื่นด้วย
 เจ้าของ| pphum โพสต์ 2016-3-15 09:37:52
submark ตอบกลับเมื่อ 2016-3-15 00:58
ใส่ไปเรียบร้อยตั้งแต่ครั้งแรกแล้วครับ เป็นอย่างที่โพสต์ไป

ลองกับสกินดีฟอล ได้ไหมครับ
notkii โพสต์ 2016-3-16 11:34:31
มันทำได้นะครับ แต่ว่าถ้าจะทำจริงๆอะบอกแค่นี้ไม่พอหรอกครับ

แสดงความคิดเห็น

เป็นแนวทางเริ่มต้นครับ เพราะผมก็กำลังทำอยุ่เหมือนกัน  โพสต์ 2016-3-16 18:11
TuMTheTasTo โพสต์ 2016-4-23 06:45:10
submark ตอบกลับเมื่อ 2016-3-14 19:55
โค้ดนี้ใช้ไม่ได้กับทุกแม่แบบนะครับ
ผมลองแล้ว
BEFORE

อยากได้แม่แบบ ตัวนี้ จัง ขอ ได้ไหม ครับ ^)^
ขออภัย! คุณไม่ได้รับสิทธิ์ในการดำเนินการในส่วนนี้ กรุณาเลือกอย่างใดอย่างหนึ่ง ลงชื่อเข้าใช้ | สมัครสมาชิก

รายละเอียดเครดิต

รายชื่อผู้กระทำผิด|Archiver|ดิสคัส ไทย Follow us: Become a fan on facebook. Follow us on Twitter.

GMT+7, 2024-4-20 18:29

Powered by Discuz! X3.4, Rev.66

Copyright © 2001-2021 Tencent Cloud. Licensed

ตอบกระทู้ ขึ้นไปด้านบน ไปที่หน้ารายการกระทู้