<分区>
<分区>
我的 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/