css - 编辑高度丰富 :editor tag

标签 css jsf richfaces jboss-seam

我用的是jsf,richfaces版本:v.3.3.1.GA。我想减少 rich:editor 标签的高度样式(使用 tinyMCE),但它没有改变。

<rich:editor id="transactionResult" style="height: 10px;" height="10"
    value="#{transactionsHome.instance.transactionResult}"
    theme="simple" viewMode="visual">
</rich:editor>

enter image description here enter image description here 我如何更改高度或其他样式的 rich:editor 标签?

最佳答案

使用 important 覆盖样式。

style="height: 10px !important;"

对于突出显示的类,将以下内容添加到您的 CSS 中:

.mceLayout {
height: 10px;
}

对于 iframe:

#iframeID {
 height: 20px;
}

iframeID 替换为您的 iframe ID。

关于css - 编辑高度丰富 :editor tag,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35076738/

相关文章:

java - 调用富:modalPanel for every ajax request with out using a4j:status?

html - 导航栏显示不正确

jsf - 那里有免费的 JSF Webhost 吗?

javascript - 如何向jsf标签graphicImage添加多个事件

java - JSF/RichFaces - 如何以编程方式从 HtmlAjaxSupport 调用 ActionEvent (a4j :support)

datatable - Richfaces dataTable 工作正常,但 ExtendedDataTable 不显示数据

css - UL LI 导航菜单,额外间距?

css - Span继承列表样式

javascript - 如何在动画/过渡中间暂停

mysql - 无法在jsf应用程序中将数据插入数据库