52AV璈A|52AV.ONE

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

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

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2014-12-10 17:42:11 | 芰閰脖 |芰憭批 撣 |摨閬 |梯璅∪
砍敺 media 2014-12-10 19:08 蝺刻摩
. B/ x; R' r% S& D/ Z, Q) d0 o% F) {, b6 D% b
餈甫avascript閬蝒憭批嚗唬閬賢函⊥菜葫銝撖祇憿敺靘曉唬畾菟畾萇撘蝣潘嗥冽潮曉之銝阡*蝷箸澆臭葉憭桐蝵格撣豢具& l" G% D6 u/ h' m4 k+ |; V9 b! a1 s
  1. <script type="text/javascript">( R1 V0 P. F0 V' u5 f. [
  2. <!--
    * m$ }; D* Q$ |$ }7 F7 V4 L
  3. 2 s" L. H$ n9 w2 J3 b4 [; j4 M
  4. var viewportwidth;
    5 _+ [' N9 q  V9 |, l0 H0 S
  5. var viewportheight;( u' P( @2 x* Q8 V
  6. 7 g) g  z2 D) _; t
  7. // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
    : O' X! t! ?5 \7 P
  8. / z/ W- S0 e1 r% R3 d! E' r: T
  9. if (typeof window.innerWidth != 'undefined')( m+ t) d& Z2 ]
  10. {1 _( d; c3 u) Y1 a* ~& s9 a/ w
  11.       viewportwidth = window.innerWidth,
    # h2 e8 r% m" u/ U. e
  12.       viewportheight = window.innerHeight
    8 u0 T1 H  v& M$ Y, u6 B
  13. }: i0 ^9 ~+ `0 ^+ c
  14. ) }# D9 K& o1 O0 D
  15. // IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)- T" Y# l# G1 X. Y
  16. 6 t" R3 L8 w  \) k) s; t
  17. else if (typeof document.documentElement != 'undefined'
    : v( q6 `' ?1 g  E
  18.      && typeof document.documentElement.clientWidth !=
    " R4 p: u8 {/ S, A% O0 S
  19.      'undefined' && document.documentElement.clientWidth != 0)
    / @! H' M4 A8 B3 `
  20. {
    8 A: j) K; ]  V7 g  V5 e- p
  21.        viewportwidth = document.documentElement.clientWidth,
    : M/ n) T" W/ }3 c0 _* u$ U7 f; b
  22.        viewportheight = document.documentElement.clientHeight
    ! P% ~7 l& p$ J5 U$ D7 c
  23. }
    % ]# |0 V- o3 r+ g0 J. B
  24.   R! Z- \5 \% w8 h0 S7 H$ w  K+ [/ S
  25. // older versions of IE
    . Z" v% N- z5 b9 q2 }$ i6 J8 [7 o
  26. " ]. v' x8 `2 m
  27. else
    ! x1 U' N# C: T3 d. @) f, u9 V9 C( ]
  28. {
    % J, O$ Y' |9 j2 h6 v* O. M! y
  29.        viewportwidth = document.getElementsByTagName('body')[0].clientWidth,9 X5 R% M. U8 b! N0 l3 b
  30.        viewportheight = document.getElementsByTagName('body')[0].clientHeight
    ; e# F! d8 B0 R8 b
  31. }/ q+ N  b  G/ ?; i% @/ K, i+ C
  32. document.write('<p>Your viewport width is '+viewportwidth+'x'+viewportheight+'</p>');8 J5 Y# ?/ L2 _
  33. //-->2 W& X1 F1 i( ~0 C4 U$ ]4 h
  34. </script>
銴鋆賭誨蝣
蝯: 狂oogle chrome 憿舐內蝯' Y, |, m& h% W1 W) P" x& T& E

  v3 G5 i6 R9 P6 q

. g6 a: t4 i5 e9 J) F, v靘皞:
Get viewport size (width and height) with javascript
* F7 q+ {8 a7 D# s; l1 `% m) v' g
( p7 E( Y  B* x- n' d
9 H7 _3 ^) k) Q1 K' b; f

雿輻券

祉蝛閬

BT蝳

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

QQ|撠暺撅||52AV璈A

GMT+8, 2024-11-24 08:11 , Processed in 0.069655 second(s), 19 queries .

蝯∠.撱

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

鋆貉憒 敹恍敺 餈銵