CSS がすべての画像を特定の幅に設定する div があります。これと一緒に別の子divを追加したいのですが、その画像には制約がありません-実際のサイズは何でも構いません。
これらの子要素の幅プロパティを「リセット」する方法がわからないので、親を継承しませんか?
これがどのように行われるか知っている人はいますか?
<div id='parent'>
<img src='image.jpg'>
<div id='child'>
<img src='image.jpg'>
</div>
</div>
CSS
#parent img {
width: 200px;
}
#child img {
width: do not inherit #parent img css???
}