Skip to main content
Participant
Mar 22, 2017 10:37 PM UTC
Answered

Navberの調整

当方iMac (Late 2015, ver10.12.3) Dreamweaver 2017.0.1 使用中です。Navbar fixed to top を調整して使っているのですが、(背景を濃い配色にしています)オンマウスでのテキストを白にしたいのです。どのcssを書き換えるもしくは追加すれば良いでしょうか?ちなみに link と visit は、.nav-style li a:link, .nav-style li a:visited などとしました。

This topic is closed to new replies. Start a new post to keep the conversation going.
tets2009Correct answer
Participant
Mar 23, 2017 12:51 AM UTC

いろいろ調べて自己解決しましたので報告まで

.navbar li a:hover     {

  color: white;

ではダメだったのですが、!important で優先度を上げれば良いようです。

.navbar li a:hover     {

  color: white !important;

でうまくいきました。

1 reply

tets2009AuthorCorrect answer
Participant
Mar 23, 2017 12:51 AM UTC

いろいろ調べて自己解決しましたので報告まで

.navbar li a:hover     {

  color: white;

ではダメだったのですが、!important で優先度を上げれば良いようです。

.navbar li a:hover     {

  color: white !important;

でうまくいきました。

Translate