このような(擬似コード)を作成したい場合があります。 non_transparent_child
は実際のコンテナであり、透明度を置く代わりにtransparent_child
を後でエミュレートします。彼らはすべて移動可能なものになるpositioned_container
に含まれています。
<wrapper>
<positioned_container> //parent that contains the two
<transparent_child> //this is your transparent stuff
<non_transparent_child> //this will contain normal stuff
</positioned_container>
</wrapper>
//relative so that the absolute children will be based from here
positioned_container{
position:relative;
}
//set to stretch with the parent
transparent_child {
position:absolute;
top:0;
bottom:0;
left:0;
right:0;
}
フィーリングを本質的な要素とスタイルに調整することができます。 – steveax
問題は、影響を受ける要素の前にあるコードによって発生する可能性があります。 – user1174762