c# - 专注于文本框

标签 c# asp.net html css

我刚刚在文本框上放置了一些 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 问题,但我无法修复它......有人可以帮助我吗?

谢谢!

最佳答案

如图this fiddle ,CSS 不会影响文本区域或文本输入。在 IE 和 Firefox 中测试。

您可能是其他原因导致了您的问题,或者您错过了一条相关信息。

关于c# - 专注于文本框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8267546/

相关文章:

c# - 为什么同一设计会得到两种不同的结果?

asp.net - SQL Server 和 ADO.NET 中事务的区别?

一起显示多个月份的 ASP.NET 日历

HTML CSS : Is there a Useless tag which does nothing?

c# - 正则表达式匹配在 C# 中不能很好地匹配

c# - 形成 MVC/ Controller / Action 链接的最佳实践

c# - Linq:TimeSpan 中 2 个 DateTime 之间的差异

c# - AddRange 抛出 null 异常

jquery - slider 在我的网页中不起作用

html - 当两个类有一些共同的样式时如何减少css?