当前位置: 动力学知识库 > 问答 > 编程问答 >

jquery - Jeditable edit without losing styles during editing?

问题描述:

Is it possible to keep the styles whilst editing, kind of like a rich text editor? It currently changes to a plaintext editor but it would be nice if you could just press an edit button and it allows you to (truly) edit in-line

网友答案:

It is possible by styling elements via css properties like

.editable form,
.editable input {
    margin: inherit;
    padding: inherit;
    font: inherit;
    color: inherit;
    background: inherit;
    border: inherit
}

where editable class is a selector for Jeditable

网友答案:

NOTE: JEditable uses <button /> node instead of <input type="button" />, so for styling buttons via CSS you need:

.editable button
{
  /** style goes here **/
}
分享给朋友:
您可能感兴趣的文章:
随机阅读: