Home > Web Front-end > HTML Tutorial > HTML新手求解。关于CSS对于li标签的active状态的背景颜色_html/css_WEB-ITnose

HTML新手求解。关于CSS对于li标签的active状态的背景颜色_html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-24 11:31:46
Original
2413 people have browsed it

譬如对于


    

            
  • AAA

  •         
  • BBB

  •         
  • CCC

  •         
  • DDD

  •         
  • EEE

  •         
  • FFF

  •     



我在自己创建的样式表
.test li {
    color:#000000;
    float: none;
    width: 200px;
    background: #f9f2f4;
    margin-bottom: 3px;
    line-height: 80px;
}
问题:怎么样设定li标签在
  • 这种情况下背景颜色变成另外的。

    譬如用bootstrap的样式表的时候,在给定的
  • source:php.cn
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template