我刚刚在文本框上添加了一些css:
#TxtBoxDescription
{
height: 30px;
padding: 5px;
width: 185px;
background: rgba(255,255,255,0.4);
border: none;
float: right;
margin: 10px 3px;
-moz-transition: all 0.2s ease-in-out;
-webkit-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
-ms-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
#DropDownListPriority
{
float: right;
height: 30px;
width: 95px;
background: rgba(255,255,255,0.4);
margin: 10px 3px;
}
#LkAddBug
{
color: rgba(255,255,255,0.8);
font-family: 'Quicksand' , sans-serif;
float: right;
width: 95px;
height: 22px;
text-decoration: none;
display: block;
background: rgba(255,255,255,0.4);
margin: 10px 10px 10px 3px;
text-align: center;
padding: 4px 0;
letter-spacing: -1;
-moz-transition: all 0.2s ease-in-out;
-webkit-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
-ms-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
现在当我想点击文本框来写一些文字时,我不能在中间点击它,我必须点击底部才能获得焦点...这太奇怪了,所以我认为这可能是一个CSS问题,但我无法解决它...有人可以帮助我吗?
谢谢!
答案 0 :(得分:1)
如this fiddle所示,CSS不会影响textarea或文本输入。在IE和Firefox中都进行了测试。
你要么有别的东西导致你的问题,要么你错过了相关的信息。