[英]How to inherit the background color of textarea from parent element in Internet Explorer?
請考慮以下示例:( 此處為實時演示 )
HTML:
<div id="wrapper">
<textarea></textarea>
</div>
CSS:
div {
background-color: #777;
}
textarea {
background-color: inherit;
}
我希望textarea
從包裝器繼承背景顏色。
它在Firefox中運行良好。
但是,在Internet Explorer 7中,背景顏色是白色。 為什么呢
我該如何解決?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.