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.
私はcssにまったく慣れていないので、助けが必要です
問題は次のとおりです。幅 1600 ピクセルの画像と幅 100% の div があります。
水平スクロールバーがなく、画像の残りの部分が右側で切り取られるように、画像を div に合わせる方法はありますか?
理想的には、css を %(レスポンシブ コーディング) で記述する必要があります。その場合、画像の width:100% と overflow:hiddenを設定できます。これは、水平スクロール バーがなく、画像の残りの部分が右側で切り取られるように、画像を div に合わせる方法です。