Я внес неизменяемые изменения в свою таблицу стилей. ⇐ CSS

Разбираемся в CSS
Гость
Я внес неизменяемые изменения в свою таблицу стилей.

Сообщение Гость »


Pic1 Pic2 Я внес изменения в таблицу стилей моего сайта WordPress (style.css), чтобы все ссылки были подчеркнуты. Я добавил код:

Код: Выделить всё

a {
text-decoration: underline !important;
}
Это сработало отлично. Теперь мне нужно изменить код, чтобы ссылки подчеркивались только при наведении на них курсора. Итак, я изменил его на

Код: Выделить всё

a {
text-decoration: none; /* No underline by default */
}
a:hover {
text-decoration: underline;
}
However, nothing changes.
Even after removing the code, there's no difference. To rule out caching issues, I made font color changes in another menu, and those changes are reflected perfectly when viewing the page in a different browser (with cache disabled). Why am I unable to remove the underline from links?


Источник: https://stackoverflow.com/questions/781 ... stylesheet

Вернуться в «CSS»