简体   繁体   English

JQuery.jeditable.js就地编辑错误(Windows7,Chrome 16)

[英]JQuery.jeditable.js Edit-in-place bug (Windows7, Chrome 16)

I'm using this edit-in-place widget jquery.jeditable.js . 我正在使用此就地编辑小部件jquery.jeditable.js On Windows 7, in Chrome (latest version - 16), when I type text into the input field, there is an odd bug where the text goes lower within its own field. 在Windows 7的Chrome(最新版本-16)中,当我在输入字段中键入文本时,出现了一个奇怪的错误,即文本在其自己的字段中变低了。 This makes it unreadable (see attachment). 这使其不可读(请参阅附件)。 It happens every other letter that i type. 我键入的每隔一个字母都会发生一次。 Has anyone come across and solved this bug? 有没有人遇到过并解决了这个错误?

Thanks in advance 提前致谢

在此处输入图片说明

The default font and size for input fields is different from the rest of the page. 输入字段的默认字体和大小与页面的其余部分不同。 If you set those in an element containing the input field, there's no effect. 如果将它们设置在包含输入字段的元素中,则无效。 You have to force the input field to inherit the font and size. 您必须强制输入字段继承字体和大小。 Preferably, you also want to set a smaller border so that won't crop the text either. 最好还设置一个较小的边框,这样也不会裁剪文本。

This is what I use with jquery.editable.js: 这就是我使用的jquery.editable.js:

input {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: rgba(15,200,0,0.05);
    border: 0;
}

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

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