撠文嗆舐雯蝡撣摮銵,詆SS∟身摰甇撣豢靘蝮桀,敶Z敶,脰霈雿輻刻擃撽銝雿喟銝臬蔣,甇斗撠梢閬寡:
* |. U4 x% J, n: s3 d& ^1 z7 V, @6 ]3 ?/ S- P9 \+ n6 @
- 甇撣豢靘蝮桀! C1 E# r" \% K8 M& e: T7 Y
' d% u2 b3 z7 X* `9 _3 e6 Z# ~( }1 ?1 o
- img {
2 B1 d9 j; U @/ B - max-height:200px; /*甇方隞交憭折摨衣箔*/% k. ?/ t; |: |! ^4 P9 i
- width:inherit;
. s9 {% {3 O4 K - height:expression(document.body.clientHeight>200?"200px""auto");/*亙擃200px撠梯矽*/7 j: e' N2 M1 X7 I( M+ @, ?3 c
- overflow:hidden; /*頞銝憿舐內*/; o) d$ T- ^* K$ Z) y6 Y
- }
銴鋆賭誨蝣 ; z' \/ e! l D3 K) N
- 瘞游像渡蔭銝
7 g4 _/ [- X3 I1 E 9 ^! v M7 f4 m
敺憭寞,雿桀箸迫雿輻 Flexbox寞舀蝪∪桃孵
4 i2 L0 }. {$ q$ E* i摰銋質鋆⊿Y芷拇憭X! \5 `$ [% ^8 m6 u
函寞敺蝪∪殷芾冽憭撅文蝢拙末隤瘜撠梯賭蝙
3 M6 W4 p- G$ z \8 P3 s
( P+ k/ P# ~- |+ F( H% b4 H. c6 ~html隤瘜
5 r, c. s0 x( I! S/ q; O- <div class="exam">
0 h& ^9 c) ^5 J5 i( ^, X8 Q' p# ^3 |8 C - <img src="頝臬">
* ]8 S- M; ?5 M0 a - </div>
銴鋆賭誨蝣 css隤瘜8 D$ |3 ]* U" ` }8 L- U! |
- .exam{1 x: m) {; @$ i0 V1 j
- width: 150px;/ v& O3 B( K7 \# W5 O w4 e g
- height: 150px;
4 G- A+ l9 h1 G - max-width: 100%;
0 r0 \: b& p T% F" e A2 x6 ? - background-color: #eb9700;
$ ] P2 o, }2 V1 e- S. m5 a - display: flex;
, |8 _# g: P# \( z2 ?% e* R - align-items: center; /*渡蔭銝*/4 p% b' @" G( U) D# a
- justify-content: center; /*瘞游像蝵桐葉*/) L0 T, R; c0 J9 N0 f
- }
銴鋆賭誨蝣 |
|