- 13, May 2024
- #1
Эти коды CSS работают только с Chrome. Проблема со ссылками в Mozilla и Explorer. Как я могу это исправить?
.button {
background-color: #4CAF50; /* Green */
border: none;
color: white;
padding: 6px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
width: 300px;
font-size: 14px;
margin: 1px 1px;
-webkit-transition-duration: 0.4s; /* Safari */
transition-duration: 0.4s;
cursor: pointer;
}
.button a{
color:#FFFFFF;
}
.button1 {
background-color: #27ae60;
color: white;
border: 2px solid #27ae60;
a color:ffffff;
}
.button1:hover {
background-color: #32ce74;
color: white;
}
.button2 {
background-color: #2980b9;
color: white;
border: 2px solid #2980b9;
}
.button2:hover {
background-color: #3599db;
color: white;
}
.button3 {
background-color: #c0392b;
color: white;
border: 2px solid #c0392b;
}
.button3:hover {
background-color: #e74c3c;
color: white;
}
.button4 {
background-color: #f39c12;
color: white;
border: 2px solid #f39c12;
}
.button4:hover {background-color: #f1c40f;}
.button5 {
background-color: #2c3e50;
color: white;
border: 2px solid #2c3e50;
}
.button5:hover {
background-color: #34495e;
color: white;
}
.button6 {
background-color: #8e44ad;
color: white;
border: 2px solid #8e44ad;
}
.button6:hover {
background-color: #9b59b6;
color: white;
}
.button7 {
background-color: #7f8c8d;
color: white;
border: 2px solid #7f8c8d;
}
.button7:hover {
background-color: #95a5a6;
color: white;
}
.button8 {
background-color: #f75e10;
color: white;
border: 2px solid #f75e10;
}
.button8:hover {
background-color: #FF8040;
color: white;
}
.button9 {
background-color: #16a085;
color: white;
border: 2px solid #16a085;
}
.button9:hover {
background-color: #1bc7a5;
color: white;
}
.button10 {
background-color: #3b5998;
color: white;
border: 2px solid #3b5998;
padding: 16px 32px;
width: 320px;
}
.button11 {
background-color: #dc4a38;
color: white;
border: 2px solid #dc4a38;
padding: 16px 32px;
width: 320px;
}
.button12 {
background-color: #00aced;
color: white;
border: 2px solid #00aced;
padding: 16px 32px;
width: 320px;
}
.button13 {
background-color: #e52b25;
color: white;
border: 2px solid #e52b25;
padding: 16px 32px;
width: 320px;
}
.onceki {
display: inline-block;
border-radius: 4px;
background-color: #88b7d5;
border: none;
color: #FFFFFF;
text-align: center;
font-size: 14px;
padding: 10px;
width: 220px;
transition: all 0.5s;
cursor: pointer;
margin: 5px;
}
.onceki span {
cursor: pointer;
display: inline-block;
position: relative;
transition: 0.5s;
}
.onceki span:after {
content: '«';
position: absolute;
opacity: 0;
top: 0;
left: -20px;
transition: 0.5s;
}
.onceki:hover span {
padding-left: 25px;
}
.onceki:hover span:after {
opacity: 1;
left: 0;
}
.onceki a {text-decoration:none !important;color:#fff;}
.sonraki {
display: inline-block;
border-radius: 4px;
background-color: #88b7d5;
border: none;
color: #FFFFFF;
text-align: center;
font-size: 14px;
padding: 10px;
width: 220px;
transition: all 0.5s;
cursor: pointer;
margin: 5px;
}
.sonraki span {
cursor: pointer;
display: inline-block;
position: relative;
transition: 0.5s;
}
.sonraki span:after {
content: '»';
position: absolute;
opacity: 0;
top: 0;
right: -20px;
transition: 0.5s;
}
.sonraki:hover span {
padding-right: 25px;
}
.sonraki:hover span:after {
opacity: 1;
right: 0;
}
.sonraki a {text-decoration:none !important;color:#fff;}
Код (разметка):