无法在HTML中选择浮动输入字段 [英] Can't select floating Input field in HTML

查看:90
本文介绍了无法在HTML中选择浮动输入字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个浮动输入框,当div容器父级的边距设置为auto时,我无法选择该输入框。请帮我知道我做错了什么。谢谢!



我继续用我的问题创建了一个小JSFiddle。我想浮动左边的输入框和它右边的示例文本...水平堆叠的那些将不允许我选择输入字段而垂直堆叠的那些。请帮忙!



http://jsfiddle.net/andrewster05/8UGnH/ [ ^ ]

I have a floating input box which I can not select when the div container parent has the margins set to auto. Please help me know what I am doing wrong. thanks!

I went ahead and created a small JSFiddle with my issue. I would like to float the input box on the left and the example text to the right of it... the ones that stack horizontally will not allow me to select the input field while the ones stacking vertically do. Please help!

http://jsfiddle.net/andrewster05/8UGnH/[^]

推荐答案

好吧,我在上面的JSFiddle中创建了它,然后我终于明白了。我有一个浮动的流体行,浮动输入字段,但我有一些相对定位的输入字段覆盖浮动元素。一旦我将行中的所有元素都浮动,我就没有选择输入字段的问题。谢谢!



如果有人有相关问题,这里是更新的小提琴。谢谢,





http://jsfiddle.net/andrewster05/D9vwk/1/ [ ^ ]
Well, I created it in a JSFiddle above and then I finally figured it out. I had a floating "fluid" row with floating input fields but also I had some relative positioned input fields which covered the floating elements. Once I made all the elements in the row floating, I did not have a problem selecting the input field. thanks!

here is the updated fiddle if anyone has a related issue. Thanks,


http://jsfiddle.net/andrewster05/D9vwk/1/[^]


这篇关于无法在HTML中选择浮动输入字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆