<ul ...>
태그의 높이를 변경하고 싶습니다. <ul...>
태그에는 id
이 없습니다. html 표의 id
만 알 수 있습니다. 다음 html
코드는 JSF Primefaces
에 의해 생성됩니다. CSS로 Primefaces Picklist 높이를 변경하는 방법은 무엇입니까?
<table id="roleEntryForm:resourceItem" class="ui-picklist ui-widget">
<tbody>
<tr>
<td>
<ul class="ui-widget-content ui-picklist-list ui-picklist-target ui-corner-all ui-sortable"></ul>
<select id="roleEntryForm:resourceItem_target" class="ui-helper-hidden" multiple="true" name="roleEntryForm:resourceItem_target"></select>
</td>
....
</tr>
.....
</tbody>
</table>
나는 다음과 같이 CSS를 사용하지만 작동하지 않습니다.
#roleEntryForm:resourceItem tr td ul {
height:500px;
}
.ui-picklist .ui-picklist-list {
height: 200px;
list-style-type: none;
margin: 0;
overflow: auto;
padding: 0;
width: 200px;
}
.ui-corner-all {
border-radius: 3px 3px 3px 3px;
}
.ui-widget-content {
background: none repeat scroll 0 0 #FFFFFF;
border: 1px solid #A8A8A8;
color: #4F4F4F;
}
ul {
}
.ui-widget {
font-size: 98% !important;
}
.ui-widget {
font-family: Arial,sans-serif;
font-size: 1.1em;
}
왜 대신 '클래스'를 사용할 수 없습니까? –
@ icanc, 나는 그것을 새롭게한다 – CycDemo
나는 400px로 높이를 바꿨다. 그리고 그것은 나를 위해 일했다. '.ui-picklist .ui-picklist-list' 블록 안에서 높이를 변경했습니다. –