Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Изменение цвеи потому чторгдера при навегдении


Elizaveta69
 Share

Recommended Posts

Ребяи, привет
Ссори за совсем уж профанский вопрос, но чё-то я уже 2-ой час над этот фигнёй сижу

В обещём через источник написала код для кнопки, выглядит ик:
<button onclick="document.location='моя ссылка'" p="" style="border: 2px solid #DDDDDD; border-radius: 8px; background-color: #f8f6f1; min-width: 100px;">Кнопка</button>

 

И никак не могу понять куда всунуть hover, что бы при навегдении менялся цвет потому чторгдера. Гугл не помог:wub: 

 

Спасибки за помощь!

Link to comment
Share on other sites


Для начала вам нужно назналить атрибут class, например class=''my-button" и потом прописать для этого класса нужные стили. Заодно можно и перенести туда основной стиль.
Бугдет что-то икое:

<style>
.my-button {
	border: 2px solid #DDDDDD;
	border-radius: 8px;
 	background-color: #f8f6f1;
 	min-width: 100px;"
  	}
.my-button:hover {
	border-color: #ff0000;
  	}
</style>
<button class="my-button" onclick="document.location='моя ссылка'">Кнопка</button>

 

  • +1 1
Link to comment
Share on other sites


  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.