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

标签 html css jsf

我想为我的 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/

相关文章:

JQuery UI 可拖动元素在 Chrome 中留下奇怪的痕迹

html - Bootstrap 3 表格响应不起作用。 X 滚动条出现在整个网站而不是表格上

java - 在 JTable 中显示 HTML

html - 为什么这个 flex table 适用于 chrome,但不适用于 IE 11?

javascript - 悬停时我可以处理其他元素吗?

java - JSF 同时登录 两个用户

spring - 使用 JSF 作为 Spring MVC 的 View 技术

jsf - 省略对 Ajax 请求的 p :selectOneMenu, 的验证

javascript - setInterval 只运行一次

html - 将不同大小的文本对齐到列表元素的底部