Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
だから私はウェブページを持っていますが、ウィンドウのサイズを縮小し始めると、すべての要素が互いに重なり始め、すべてが台無しに見えます。すなわち
Youtubeは、すべての画像が互いに積み重なるのではなく、すべてを切り取るだけです。どうすれば同様の効果を得ることができますか?
widthブロック要素はデフォルトで親の幅に合わせて調整されるため、コンテナー (またはmin-width) をピクセル単位で修正しない場合、幅は になり100%、子要素のサイズを変更することで調整されます。コンテナーにwidth/を追加します。min-width
width
min-width
100%
#wrapper{ width: 960px; margin: 0 auto; ... }