简体   繁体   中英

Change Combo color on focus

I want to change border color on focus for combo box. It has class .ui-selectonemenu class and on focus ui-state-focus class gets applied to same level. I am trying to write selector as .ui-selectonemenu .ui-state-focus and tried .ui-selectonemenu :focus but both are not working. Any suggestions. Doing it for primefaces

.ui-selectonemenu
            {
                width:150px;
                padding:5px;
            }
.ui-selectonemenu:hover, .ui-selectonemenu:focus
            {
                background:#ffd800;
                border:px solid #f00;
            }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM