撠文嗆舐雯蝡撣摮銵,詆SS∟身摰甇撣豢靘蝮桀,敶Z敶,脰霈雿輻刻擃撽銝雿喟銝臬蔣,甇斗撠梢閬寡:4 f: X% ]+ p9 [8 }9 B% u3 e
& w# u; ~" \( s8 a) T2 U- 甇撣豢靘蝮桀2 H6 w( x! t, o" c/ _1 e
; l O$ a# q1 m F
- img {
. i5 y/ ?# E. o0 M: @; L1 U+ ~/ Q - max-height:200px; /*甇方隞交憭折摨衣箔*/ ~9 v# q# E( M' O
- width:inherit;
% I! C4 |6 h, [, }; Z% n - height:expression(document.body.clientHeight>200?"200px""auto");/*亙擃200px撠梯矽*/$ M5 r- f& v5 G N, ]
- overflow:hidden; /*頞銝憿舐內*/$ w9 \4 T- p6 s6 C9 E2 k" c
- }
銴鋆賭誨蝣
8 d6 h6 f3 q \) e: j- U) ], a8 K' Q6 z2 [0 p! Q6 R
敺憭寞,雿桀箸迫雿輻 Flexbox寞舀蝪∪桃孵
$ \1 h0 s6 M# m0 t a0 y摰銋質鋆⊿Y芷拇憭X
. e5 L$ `8 J4 I- H9 C9 \# r2 G8 A函寞敺蝪∪殷芾冽憭撅文蝢拙末隤瘜撠梯賭蝙- n+ c. ]% w' g) G) x' @3 }
# l/ ^# l1 g3 {3 yhtml隤瘜- W: T: k; u5 @5 T- r
- <div class="exam">
+ M) @3 j( D; f6 s6 e, F4 ? - <img src="頝臬">
. X3 t/ F# b" A* N. x! H - </div>
銴鋆賭誨蝣 css隤瘜- M4 B) Q0 {+ c0 m9 F
- .exam{, T* A' O1 k2 b" T# U3 y
- width: 150px;
, F. o# y, Z9 A - height: 150px;# B( A$ r6 L$ ^; i/ [7 C
- max-width: 100%;
6 U# Z+ l, N+ P8 F - background-color: #eb9700;
% t& q- r) h0 f2 V& d - display: flex;. F* k5 I; a6 o7 y/ n
- align-items: center; /*渡蔭銝*/
5 \2 N$ x8 G# s" ] - justify-content: center; /*瘞游像蝵桐葉*/4 p5 I6 J2 y' a$ I7 l9 I: S
- }
銴鋆賭誨蝣 |
|