jQuery UI 自动完成宽度问题
我没有接触过 jQuery UI 中的任何内容,并且宽度比我的输入更大。您可以在此处显示发生的情况:http://i54.tinypic.com/nqa107.jpg
我能解决这个问题吗?您需要哪部分代码?该字符串不超过 15 个字符。
先感谢您
I haven't touched anything from jQuery UI them and the width is bigger than my input. You can show what happens here: http://i54.tinypic.com/nqa107.jpg
How I can solve this? What parts of code do you need? The string are not more that 15 chars.
Thank you in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我最近才转向 jQuery,所以我可能是错的。您似乎还没有获取以 ui 为主题的样式表之一。前往 jQuery UI 下载页面,下载 ui 并使用它为您生成的样式表。如果您对 ui 的工作方式感到满意,那么您可以放弃它为您提供的 javascript。
I only recently switched to jQuery, so I might be wrong. It looks like you haven't grabbed one of the ui-themed stylesheets. Head to the jQuery UI download page, download the ui and use the stylesheet it generates for you. If you're happy with the way you have the ui working already, then you can discard the javascripts it gives you.
某个地方有一条规则指定宽度为 1401 像素。在 CSS 样式表中找到它并删除或更正它。如果你的字符串总是 15 个字符长,是否可以将其更改为 16em?
Somewhere you have a rule that is specifying a width of 1401 pixels. Find that in your CSS stylesheets and remove or correct it. possibly change it to 16em if your strings are always 15 characters long?