Serg Posted April 13, 2019 Share Posted April 13, 2019 Добрый день! Применяю для кнопки : .myOKboton { background: lime; border-color: #CC33CC; color: blue; border-width: 1px; } Но как применить для кнопки в фокусе? Спасибо Link to comment Share on other sites More sharing options...
Sherzod Posted April 13, 2019 Share Posted April 13, 2019 28 minutes ago, Serg said: Но как применить для кнопки в фокусе? Здравствуйте, Простите, можете уточнить вопрос? Link to comment Share on other sites More sharing options...
Serg Posted April 13, 2019 Author Share Posted April 13, 2019 Мне необходимо изменить цвет фона UniButton при наведении и фокусе. Link to comment Share on other sites More sharing options...
Sherzod Posted April 13, 2019 Share Posted April 13, 2019 4 minutes ago, Serg said: Мне необходимо изменить цвет фона UniButton при наведении и фокусе. Попробуйте использовать псевдоклассы: hover и focus .myOKboton:hover { } .myOKboton:focus { } Link to comment Share on other sites More sharing options...
Serg Posted April 13, 2019 Author Share Posted April 13, 2019 Спасибо! Link to comment Share on other sites More sharing options...
Serg Posted April 13, 2019 Author Share Posted April 13, 2019 Не работает для .myOKboton:focus { background: white; border-color: #CC33CC; color: orange; border-width: 1px; } тема : classic Link to comment Share on other sites More sharing options...
Sherzod Posted April 13, 2019 Share Posted April 13, 2019 1 hour ago, Serg said: Не работает для .myOKboton:focus { background: white; border-color: #CC33CC; color: orange; border-width: 1px; } .myOKboton.x-btn:focus { background: white; border-color: #CC33CC; color: orange; border-width: 1px; } Link to comment Share on other sites More sharing options...
Serg Posted April 13, 2019 Author Share Posted April 13, 2019 Большое спасибо! Link to comment Share on other sites More sharing options...
Serg Posted April 13, 2019 Author Share Posted April 13, 2019 Большое спасибо! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now