52AV璈A|52AV.ONE

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

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

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2014-12-10 17:42:11 | 芰閰脖 |芰憭批 撣 |摨閬 |梯璅∪
砍敺 media 2014-12-10 19:08 蝺刻摩 7 Y+ |9 f( F: y' T; R
2 K0 c( m" F% }+ }! O: Y- R9 |
餈甫avascript閬蝒憭批嚗唬閬賢函⊥菜葫銝撖祇憿敺靘曉唬畾菟畾萇撘蝣潘嗥冽潮曉之銝阡*蝷箸澆臭葉憭桐蝵格撣豢具) s) p! g7 J! e+ D0 F+ {  q, _
  1. <script type="text/javascript">
    % I4 ]$ {; r4 V* K) O
  2. <!--
    0 k8 B/ G  u% C% O
  3. 5 W0 W  E+ J- C9 I2 A8 z) w
  4. var viewportwidth;
    . I. D( m9 H& \& S
  5. var viewportheight;/ v( e: Z3 O6 L0 U9 n
  6. % d7 D3 }/ L7 L) x* S: o
  7. // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight0 Q+ p( n! ?) i7 m

  8. 8 \1 z9 L) D2 v( k" X+ O1 F
  9. if (typeof window.innerWidth != 'undefined')7 `& ^  a9 a5 O1 O* x8 _4 h# U
  10. {
    - X- W1 O3 S/ t0 N# i
  11.       viewportwidth = window.innerWidth,8 f& l8 A6 G9 j- P+ D9 Y" g
  12.       viewportheight = window.innerHeight% n/ V* Q" `6 h9 Z
  13. }6 @1 x' }2 C  j1 Q( O7 ]7 t' U
  14. ; z- ~9 P  i! U# \1 t( y
  15. // IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)2 Y; s+ c, C7 m+ L  c. P
  16. . X" v2 A6 O+ i  [! p7 r
  17. else if (typeof document.documentElement != 'undefined'
    # Z4 Z% b/ o9 T7 H
  18.      && typeof document.documentElement.clientWidth !=
    : U( p) L$ A) a! `6 {, l: ~" b
  19.      'undefined' && document.documentElement.clientWidth != 0)
    , \$ o  @+ ~( v
  20. {" L+ j" L3 j4 B/ c8 W
  21.        viewportwidth = document.documentElement.clientWidth,
    # \2 t( R4 P! p5 C/ @
  22.        viewportheight = document.documentElement.clientHeight) _# y& |; c! G
  23. }
    7 p/ y) h, D% j& ?

  24. , u1 A, ]/ U" w4 z' J
  25. // older versions of IE
    ) u/ O. h; I8 ]2 S
  26. 9 t1 }" N1 f6 s( e9 Q
  27. else) h' t( u7 k0 L; w
  28. {
    - s* I, e  U9 Y
  29.        viewportwidth = document.getElementsByTagName('body')[0].clientWidth," N) x% O" T% k2 p  F0 L( c; E8 w
  30.        viewportheight = document.getElementsByTagName('body')[0].clientHeight- Y6 f6 |, c4 M& d$ H5 L% B
  31. }$ p! B0 G& G# Q
  32. document.write('<p>Your viewport width is '+viewportwidth+'x'+viewportheight+'</p>');
    0 b) ^# w/ F" v8 }% i8 e# n
  33. //-->; d) U5 t8 V5 A! e; q
  34. </script>
銴鋆賭誨蝣
蝯: 狂oogle chrome 憿舐內蝯
4 o. }! [: g; ], C) L$ T ) I( d* r0 E/ R& b- i) Y
% B$ P+ a* l5 _8 L
靘皞:
Get viewport size (width and height) with javascript

6 s8 K5 _! V, D+ ?/ ^3 F; g
7 g+ o9 F; l- c( M5 n4 ~* \
; B% V7 H  [) e9 W- v7 \; S

雿輻券

祉蝛閬

BT蝳

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

QQ|撠暺撅||52AV璈A

GMT+8, 2025-2-16 19:49 , Processed in 0.064226 second(s), 19 queries .

蝯∠.撱

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

鋆貉憒 敹恍敺 餈銵