简体   繁体   English

html输入字段不可点击

[英]html input field not clickable

For some reason my login textbox is not clickable in the main area, only on the bottom-border. 由于某些原因,我的登录文本框在主区域中不能单击,只能在底部边界上单击。 I looked at other topics on this issue and people have been advised to check for transparent overlapping elements, I checked and I don't see any - also tried messing with a higher z-index but that also did not work. 我查看了有关此问题的其他主题,并建议人们检查透明的重叠元素,我检查了但没有看到任何内容-也尝试将较高的z-index弄乱,但这也行不通。 Would love some input! 希望有一些投入!

.input_large {
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
-khtml-border-radius: 3px;
border-radius: 3px;
border: 1px solid #929292;
padding:5px;
width:259px;
background-color:#f6f6f6;

} }

this is the CSS. 这是CSS。 The problem is also viewable here: click 该问题在此处也可见: 单击

Thanks in Advance! 提前致谢!

The span#status is overlapping the input . span#statusinput重叠。 If you reduce the height of the span it allows the input to be clicked. 如果减小span的高度,则可以单击input

#status {
    border-radius: 11px;
    height: 50px; /*Height reduced*/
    left: 0;
    margin-top: -100px;
    padding-top: 15px;
    position: absolute;
    text-align: center;
    text-transform: uppercase;
    top: 50%;
    width: 100%;
    z-index: 0;
}

You could also not position this element absolutely, which will allow the input to be clicked. 您也不能绝对定位此元素,这将允许单击input I'm not sure the reasoning behind this element being position:absolute . 我不确定这个元素背后的原因是position:absolute

The <span id=status> element is in the way. <span id=status>元素妨碍了。 It is not visible ( opacity: 0 ) and blocks the Username control. 它是不可见的( opacity: 0 ),并阻止用户名控件。 Instead of using opacity: 0 , you can use visibility: hidden , but it seems like you could just tweak the height and positioning of the element so that it fills up the white space above the inputs instead. 除了使用opacity: 0 ,您还可以使用visibility: hidden ,但是似乎您可以调整元素的高度和位置,以便它填充输入上方的空白。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM