97久久国产亚洲精品超碰热,成人又色又爽的免费网站,色偷偷女人的天堂a,男女高潮喷水在线观看,国内精品一线二线三线区别在哪里

Discuz! 官方交流社區(qū)

標(biāo)題: DZ!X4 PC版自適應(yīng)代碼 [打印本頁(yè)]

作者: 武安信息亭    時(shí)間: 2020-3-2 08:59
標(biāo)題: DZ!X4 PC版自適應(yīng)代碼

將以下代碼放到后臺(tái)統(tǒng)計(jì)代碼里即可 (代碼由作者:LisenH提供):
  1. <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.slim.min.js"></script>
  2. <script>var jq = jQuery.noConflict();</script>
  3. <script>
  4.   jq(document).ready(function () {
  5.     jq("head").append('<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">')
  6.     jq("head").append('<style>.tedt{width:100% !important; max-width:600px}</style>')
  7.     jq("head").append('<style>.quote{width:100% !important}</style>')
  8.     jq("#toptb").css("min-width", "0")
  9.     jq(".hdc.cl").css("min-height", "0")
  10.     jq(".wp").css("min-width", "0")
  11.     jq(".zoom").css("width", "100%")
  12.     jq(".zoom").css("max-width", "600px")
  13.     jq(".attach_nopermission.attach_tips").css("width", "100%")
  14.     jq(".attach_nopermission.attach_tips").css("max-width", "600px")
  15.     jq(".tedt.mtn").css("width", "100%")
  16.     jq(".tedt.mtn").css("max-width", "600px")
  17.     resized()
  18.   })
  19.   window.addEventListener("resize", resized)
  20.   function resized() {
  21.     if (jq(document).width() <= 650) {
  22.       jq("#online").hide()
  23.       jq("#qmenu").hide()
  24.       jq("#um").children("p:eq(1)").hide()
  25.       jq("#um").css("padding-right", "0")
  26.       jq("#scbar_txt").css("width", "calc(100vw - 145px)")
  27.       jq(".scbar_hot_td").hide()
  28.       jq(".fl_i").hide()
  29.       jq(".fl_by").hide()
  30.       jq(".hdc.cl").children("h2").children("a").children("img").css("height", "32px")
  31.       jq("#chart").hide()
  32.       jq("#loginstatus").hide()
  33.       jq(".avt.y").hide()
  34.       jq(".y.pns").children("table").children("tbody").children("tr:eq(0)").hide()
  35.       jq(".y.pns").children("table").children("tbody").children("tr:eq(1)").children("td:eq(0)").hide()
  36.       jq(".y.pns").children("table").children("tbody").children("tr:eq(1)").children("td:eq(1)").hide()
  37.       jq("#frt").hide()
  38.       jq(".by").hide()
  39.       jq(".num").hide()
  40.       jq(".bm_h.cl").children(".y").hide()
  41.       jq("#toptb").children(".wp").children(".y").hide()
  42.       jq(".pls").hide()
  43.       jq("#fj").hide()
  44.       jq("#fastsmiliesdiv").hide()
  45.       jq("#fastposteditor").css("margin-right", "0")
  46.       jq("#p_btn").hide()
  47.     } else {
  48.       jq("#online").show()
  49.       jq("#qmenu").show()
  50.       jq("#um").children("p:eq(1)").show()
  51.       jq("#um").css("padding-right", "60px")
  52.       jq("#scbar_txt").css("width", "400px")
  53.       jq(".scbar_hot_td").show()
  54.       jq(".fl_i").show()
  55.       jq(".fl_by").show()
  56.       jq(".hdc.cl").children("h2").children("a").children("img").css("height", "66px")
  57.       jq(".pipe").show()
  58.       jq("#chart").show()
  59.       jq("#loginstatus").show()
  60.       jq(".avt.y").show()
  61.       jq(".y.pns").children("table").children("tbody").children("tr:eq(0)").show()
  62.       jq(".y.pns").children("table").children("tbody").children("tr:eq(1)").children("td:eq(0)").show()
  63.       jq(".y.pns").children("table").children("tbody").children("tr:eq(1)").children("td:eq(1)").show()
  64.       jq("#frt").show()
  65.       jq(".by").show()
  66.       jq(".num").show()
  67.       jq(".bm_h.cl").children(".y").show()
  68.       jq("#toptb").children(".wp").children(".y").show()
  69.       jq(".pls").show()
  70.       jq("#fj").show()
  71.       jq("#fastsmiliesdiv").show()
  72.       jq("#fastposteditor").css("margin-right", "170px")
  73.       jq("#p_btn").show()
  74.     }
  75.   }
  76. </script>
復(fù)制代碼
如果覺(jué)得以上代碼實(shí)用,請(qǐng)關(guān)注
青年攝影網(wǎng)——www.qnsyw.com》


作者: jeeke    時(shí)間: 2020-3-2 15:13
作用是什么呢?http://www.ximanni.cn/放了沒(méi)看出變化
作者: 武安信息亭    時(shí)間: 2020-3-2 23:20
jeeke 發(fā)表于 2020-03-02 15:13
作用是什么呢?http://www.ximanni.cn/放了沒(méi)看出變化

電腦版自適應(yīng)
作者: acgi    時(shí)間: 2020-3-7 13:30
這jq用的可真胡鬧
作者: 武安信息亭    時(shí)間: 2020-3-7 13:42
acgi 發(fā)表于 2020-03-07 13:30
這jq用的可真胡鬧

那你弄個(gè)不胡鬧的
作者: 武安信息亭    時(shí)間: 2020-3-11 13:32
jeeke 發(fā)表于 2020-03-02 15:13
作用是什么呢?http://www.ximanni.cn/放了沒(méi)看出變化

你把手機(jī)版關(guān)閉 就知道效果了
作者: 學(xué)無(wú)止境it    時(shí)間: 2020-4-9 21:02
留言標(biāo)記一下  備用,感覺(jué)可以
作者: wonderful    時(shí)間: 2020-4-11 09:15
看看我的網(wǎng)站,DZ做的,自適應(yīng),https://www.khaoshu.com/
作者: 學(xué)無(wú)止境it    時(shí)間: 2020-6-25 14:05
標(biāo)記一下不知道啥時(shí)候就用到了
作者: jndaoye    時(shí)間: 2020-8-20 16:48
是放在第三方統(tǒng)計(jì)里面嗎,手機(jī)版已經(jīng)關(guān)閉,我的是3.4,沒(méi)用哦,




歡迎光臨 Discuz! 官方交流社區(qū) (http://r615.cn/) Powered by Discuz! X5.0