gpt4 book ai didi

html - 如何为h :selectManyListbox设置边框和滚动条颜色

转载 作者:行者123 更新时间:2023-11-28 12:54:01 26 4
gpt4 key购买 nike

我想为我的 h:selectManyListbox 设置边框颜色和滚动条颜色为红色

    <h:selectManyListbox id="abc" style="">
</h:selectManyListbox>

最佳答案

经过一些搜索,scrollbar-base-color 仅适用于 Internet Explorer,您需要一些用于 FireFox 和 Chrome 的 JavaScript...

这里是关于这样做的信息:Custom ScrollBar

至于边框,你可以简单地使用它:

<h:selectManyListbox id="abc" style="border: 1px solid red;">
</h:selectManyListbox>

CSS:

.customSelect
{
border: 1px solid red;
}

JSF:

<h:selectManyListbox id="abc" styleClass="customSelect">
</h:selectManyListbox>

或者当然是一个简单的选择器:

select
{
border: 1px solid red;
}

关于html - 如何为h :selectManyListbox设置边框和滚动条颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16702028/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com