52AV璈A|52AV.ONE

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

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

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2014-12-10 17:42:11 | 芰閰脖 |芰憭批 撣 |摨閬 |梯璅∪
砍敺 media 2014-12-10 19:08 蝺刻摩
7 w& S$ a; c, s! B5 w9 G( u6 C
) H0 ~3 G% Y, e. P0 W餈甫avascript閬蝒憭批嚗唬閬賢函⊥菜葫銝撖祇憿敺靘曉唬畾菟畾萇撘蝣潘嗥冽潮曉之銝阡*蝷箸澆臭葉憭桐蝵格撣豢具
7 @7 b( O0 d# {  C# W* s
  1. <script type="text/javascript">  t$ r- U0 f! W- d
  2. <!--
    8 Q: r& }( m; r8 M: _( e3 g4 J
  3. * ?6 y; T. R2 Z8 [* X4 E1 _
  4. var viewportwidth;$ ?( m" o0 X, L! j/ G) }$ b
  5. var viewportheight;
    ' g4 I! a1 c2 d/ J! ~9 z  [
  6. ! @6 v) y$ u0 L: A+ U: J) g
  7. // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight9 M8 `( V4 O- X& Q& Z

  8. 0 |4 [& h# J# ~# a' ]( k! [
  9. if (typeof window.innerWidth != 'undefined')) K4 g; i9 j$ S3 |
  10. {
    9 s& D3 O6 x1 Y7 f2 |% I2 e7 C, W
  11.       viewportwidth = window.innerWidth,
    0 b& t8 F/ f' ?$ n! i* X% {& y
  12.       viewportheight = window.innerHeight
    - Y" D  E# e* n0 V% y% r  i
  13. }
    " V: P0 [9 Z0 @) h
  14. 3 y4 I% l! T% F! x+ l) o
  15. // IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)+ V) |' G4 o' [
  16. ) f1 a9 Q0 i. O" I8 |3 h4 S
  17. else if (typeof document.documentElement != 'undefined': `, M/ T/ X& F/ Q  N2 A
  18.      && typeof document.documentElement.clientWidth !=# ~8 J( g( f( P7 b& \1 u% @& ?; U
  19.      'undefined' && document.documentElement.clientWidth != 0). k5 r1 V. B# z9 C0 {& M
  20. {+ N/ ]/ d0 N& a8 _; [/ C5 T6 R
  21.        viewportwidth = document.documentElement.clientWidth,
    ! z# \% `3 I  b6 ?; s
  22.        viewportheight = document.documentElement.clientHeight
    ! F2 j* u2 V$ i0 e
  23. }2 n( Y* m( U/ o7 h/ @; L

  24. % p& J, Y1 N4 s0 B- L
  25. // older versions of IE
    1 Z. [4 g0 c6 j7 Q: q. p: u6 B
  26. 7 s4 @) s0 z! i- C- N4 p/ w
  27. else; P: r3 ^, K- f9 u9 R( r* A/ n
  28. {: B! H6 ?4 O3 n; i* i; x
  29.        viewportwidth = document.getElementsByTagName('body')[0].clientWidth,# S! Q( a0 M1 c1 t1 c
  30.        viewportheight = document.getElementsByTagName('body')[0].clientHeight: ^# y/ r4 g0 ]
  31. }, ]9 Q( e* G9 V4 s1 \  p; \. |
  32. document.write('<p>Your viewport width is '+viewportwidth+'x'+viewportheight+'</p>');
    5 G9 c, z, B  E. x: P! I- f% A2 R$ L& K
  33. //-->
    ( W4 V) q+ \( y# F  h5 z- I
  34. </script>
銴鋆賭誨蝣
蝯: 狂oogle chrome 憿舐內蝯9 U2 ]: X( H: z+ Q

4 N7 k# W8 O' G+ U: I
' R/ N6 Y/ b6 M3 f$ h  B: a1 O+ w
靘皞:
Get viewport size (width and height) with javascript
* o8 ~: P% g! `) |6 l$ F& r1 P. z& m
9 h! _! x' @* Y. k* z1 u( L
" k3 J7 e' M" p2 Z$ O5 |( P  N) A1 V

雿輻券

祉蝛閬

BT蝳

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

QQ|撠暺撅||52AV璈A

GMT+8, 2024-11-25 16:16 , Processed in 0.071438 second(s), 19 queries .

蝯∠.撱

[email protected] | QQ:2405733034     since 2015-01

鋆貉憒 敹恍敺 餈銵