2

是否可以在编辑时保留样式,有点像富文本编辑器?它目前更改为纯文本编辑器,但如果您只需按下编辑按钮并允许您(真正)在线编辑,那就太好了

4

2 回答 2

4

可以通过 CSS 属性设置元素的样式,例如

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

其中editableclass 是 Jeditable 的选择器

于 2010-09-05T17:21:42.173 回答
0

注意: JEditable使用<button />node 而不是,因此对于通过CSS<input type="button" />设置按钮样式,您需要:

.editable button
{
  /** style goes here **/
}
于 2013-02-05T11:21:35.003 回答