css - 如何为自动出现的 ul 定义样式

标签 css jsf

<分区>

我的 xhtml 页面包含代码

 <h:form id="stackForm">
      <p:orderList  id="stack"> ... </p:orderList>
 </<h:form>

它生成 html

<form id="stackForm">
     <table id="stackForm:stack"> 
        <ul class="ui-widget-content ui-orderlist-list ui-corner-all ui-sortable"><li>...</li></ul>
     </table>
</form>

如何设置ul的样式?

我尝试过这种风格,但没有成功

#stackForm:stack ul {
    background-color: aliceblue;
}

最佳答案

form#stackForm table#stackForm\:stack ul{
    background-color:red;
}

这应该有效。

关于css - 如何为自动出现的 ul 定义样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30712154/

上一篇:java - 在rest application jax-rs, maven project中添加外部文件(.css, .js, ecc)

下一篇:html - table-cell 的 child 未占据 100% 的高度(仅适用于 FF)

相关文章:

javascript - 试图让容器 div 在点击时改变高度

c# - Css 类没有在后面的代码中被删除

jsf - 使用 h :commandButton 传递参数

java - java服务器面临el的空控制

JSF、RichFaces、分页

jsf - 异常 EL 表达式不平衡 :

css - 如何将此 css 重写为 xpath

jquery - Bootstrap 下拉菜单在 Google Chrome 中无法正确显示

jsf - 使用 p :selectOneMenu 导航

html - 在不影响文本的情况下使背景图像变暗