简体   繁体   English

为什么我的令牌输入在移动设备上中断?

[英]Why does my token input break on mobile?

You can see my token input here on the search box: http://pineapple.io/ 您可以在搜索框上看到我的令牌输入: http : //pineapple.io/

Under normal circumstances, there is a hidden input that expands when you click in the box. 通常情况下,单击该框时,会有一个隐藏的输入会展开。

It seems to work great in all desktop browsers, but on a mobile phone when you click in the right area of the box (which normally works on a desktop), it doesnt click inside the tiny invisible input. 它似乎在所有台式机浏览器中都很好用,但是在移动电话上,当您单击框的右侧区域(通常在台式机上工作)时,它不会在微小的看不见的输入中单击。 You need to actually click to the farthest most point (directly to the right of the magnifying glass) and then it will work. 您实际上需要单击到最远的点(直接在放大镜的右边),然后它才能工作。

Here is where it must be clicked: 在这里必须单击它:

在此处输入图片说明

I assume this has to do with the 'touch' rather than click functionality of a phone? 我认为这与手机的“触摸”功能有关,而不是与点击功能有关吗?

Source is here: http://loopj.com/jquery-tokeninput/ 来源在这里: http : //loopj.com/jquery-tokeninput/

Your input is really small (currently it's hard-coded at width: 30px ), hence why the mobile doesn't like it. 您输入的内容确实很小(当前在width: 30px上进行了硬编码),因此为什么手机不喜欢它。 Can you make that bigger? 你能做得更大吗? That would probably help a lot! 那可能会很有帮助!

Here's a picture to explain: http://cl.ly/image/0b3N471F1y3O 这是一张要说明的图片: http : //cl.ly/image/0b3N471F1y3O

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

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