Jump to content

khotabychua

Newbie
  • Posts

    3
  • Joined

  • Last visited

Everything posted by khotabychua

  1. псевдокласс hover и свойство background <!DOCTYPE html> <html> <head> <style type="text/css"> button#b1 { height: 25px; width: 120px; background-color: #face8b; border: 1px solid #000000; } button#b1:hover { background-color: #a7a6d2; } </style> </head> <body> <button id="b1">кнопка</button> </body> </html>
  2. Использовать псевдокласс hover и свойство display, самый простейший пример <div class="cont"> наведи <div>смотри</div> </div> div.cont div { display: none; } div.cont:hover div { display: block; }
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy