在使用TextArea时发生了一个奇怪的现象,就是TextArea不能遮挡后面的文字,经过研究发现是
position
:
inherit
; 引起的
做了以下几个简单试验:
首先原始UI如下,当单击“回复”按钮时显示一个DIV,DIV中包含一个TextArea和两个按钮:
1. 当DIV的position : fixed,relatived 或者absolute时,显示效果如下:
但是当position : inherit时, 问题出现了: