请教CSS如何定义伪类到行内?

html-css016

请教CSS如何定义伪类到行内?,第1张

写一个类比如aa

.aa:hover{

border:1px

}

调用此样式:<a herf="xxx" class="aa">你也好</a>

又比如:<div><a>你好</a></div>

样式就可以:

.aa a:hover{

color:red

}

调用:

<div class="aa"><a>你好</a></div>

明白不?

1.首先找到wordpress菜单中的class类名

2.在wordpress模版目录下一般在wp-content\themes\主题名,找到style.css

3.在style.css中为类名添加样式,如下:

.menu-item:{color:red}

这样就可以设计菜单css样式了