52AV璈A|52AV.ONE

 曉撖蝣
 蝡唾酉
敹急瑕
  • av隢憯BBS
  • 璈A
  • 芣瑟憭瘚
  • 鞎澆
  • 52av鋆貉摰
  • 銝剜-銝剖銝餅
Yahoo!憟拇撠
望: 璈A
Google憟拇撠
望: 璈A
     
亦: 4095|敺: 0
銝銝銝駁 銝銝銝駁

[HTML] 敺桀航閬蝒批捆撠箏站--Javascript[1撘萄]

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2014-12-10 17:42:11 | 芰閰脖 |芰憭批 撣 |摨閬 |梯璅∪
砍敺 media 2014-12-10 19:08 蝺刻摩
0 |0 C) p) f; ]2 _6 [4 I% t  y& k* T$ N5 o
餈甫avascript閬蝒憭批嚗唬閬賢函⊥菜葫銝撖祇憿敺靘曉唬畾菟畾萇撘蝣潘嗥冽潮曉之銝阡*蝷箸澆臭葉憭桐蝵格撣豢具( `' W/ Z! ~; h* w. |
  1. <script type="text/javascript">2 _, J7 D: ^+ v  J/ ]
  2. <!--
    # m% P# T9 l: d: L

  3. ! v& y' N- G( _/ y8 ]' z6 l. q5 N
  4. var viewportwidth;
    9 }4 t0 ]4 g& {% b4 t) H6 w# B
  5. var viewportheight;3 ?  f) x4 j0 `" Q' |

  6.   B5 N- q# Q* t, n
  7. // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight) I+ F$ |# b" O

  8. * E! E7 j8 J; x
  9. if (typeof window.innerWidth != 'undefined')
    7 T, d+ q6 B9 e6 h! Z; u
  10. {
    ; u9 O# K* t; v2 w: h& T0 c
  11.       viewportwidth = window.innerWidth,
    ) U4 a$ Z& K, n5 r
  12.       viewportheight = window.innerHeight( f3 }, l- _8 J
  13. }8 L4 O! Q' j' _& M1 ~" Q
  14. , P3 \! O6 t8 f, R
  15. // IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)% Z" U1 m/ F3 G

  16. # \9 a" v  g# D# ^. E
  17. else if (typeof document.documentElement != 'undefined'
    $ ~* j2 a( }; |, s
  18.      && typeof document.documentElement.clientWidth !=
    0 B. ]& |" l9 g6 C! K% w& Z5 A. w
  19.      'undefined' && document.documentElement.clientWidth != 0)
    ( t8 ^. F* D6 y7 P6 g
  20. {
    2 v* |7 U( ]8 e2 h
  21.        viewportwidth = document.documentElement.clientWidth,, d% ]+ `5 U& v- f4 s8 E
  22.        viewportheight = document.documentElement.clientHeight
    6 R1 z$ g6 Z; n' [0 H6 a
  23. }# z4 x' e; w/ g5 n, S

  24. 8 o) D8 P0 [( t; X; k2 k+ G
  25. // older versions of IE
    5 w) X$ F, N. w. B5 ~
  26. 0 C9 j3 @" A& \/ M5 F* `
  27. else
    / E" u" Y+ D, N' P
  28. {
    7 F% R2 p! R- `; i/ i" F
  29.        viewportwidth = document.getElementsByTagName('body')[0].clientWidth,' a, J6 v  h' t! R+ s  _. M
  30.        viewportheight = document.getElementsByTagName('body')[0].clientHeight1 [) a& F3 F' Y- ?
  31. }: g4 g8 G( Q; e8 ~1 r1 H$ _( m7 {
  32. document.write('<p>Your viewport width is '+viewportwidth+'x'+viewportheight+'</p>');  ?+ m) `+ O2 e) `( O" I4 l
  33. //-->
    % m: S( j) Q9 z6 E: b! x2 E) Q
  34. </script>
銴鋆賭誨蝣
蝯: 狂oogle chrome 憿舐內蝯3 Y; S7 \. _7 m- M4 O6 }) U  b

/ Q6 t) L! G: `4 w( T: O
, |  U# S' f' F, q, Q) D+ C
靘皞:
Get viewport size (width and height) with javascript

( L. d; ]0 F$ b1 t8 C: L1 K" g. `6 n6 @2 @! S
& h+ d1 z. \8 P: o/ P1 ~) j0 j

雿輻券

祉蝛閬

BT蝳

砍憛批捆靘餉衣雯頝臬批捆蝝颲行粹嗥蝬脩嚗摰撟湔遛嚗嚗甇脖誑銝嗅啣摰嗆摰撟湧翩鈭箏ㄚ孵舫脣伐銝憿亙祉璇甈橘芣遛18甇 雓蝯脣亦閬賬粹脩芣遛18甇脖芣撟渡雯閬賜雯頝臭嗥批捆鞈閮嚗撱箄降典舫脰蝬脰楝批捆蝝蝯蝜ICRA蝝摰鋆閮剖 (粹蝯行霅 祉蝬脣銝蝝瘛函隢憯啣嚗祉閮剜蝞∠)

QQ|撠暺撅||52AV璈A

GMT+8, 2024-11-24 21:09 , Processed in 0.077314 second(s), 19 queries .

蝯∠.撱

52avtv@gmail.com | QQ:2405733034     since 2015-01

鋆貉憒 敹恍敺 餈銵