Home > Web Front-end > HTML Tutorial > Selector problem? _html/css_WEB-ITnose

Selector problem? _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:15:34
Original
1219 people have browsed it


What do the following selectors mean? I have never seen li:hover and li.over, only a:hover
li:hover ul, li.over ul


Reply to discussion (solution)

This post was last edited by net_lover on 2012-10-10 21:40:58

Not a link but also supports :hover, this requires It only works in non-IE browsers or higher versions of IE
li:hover is the effect of moving the mouse over li

Ask again, what does li.over mean?

Let me state that li is not a class selector, it is li.

li.over

Define css
Use


  • You should have seen
    .over{}
    Define it this way.
    li.over limits over to only apply to li

    Ask again, what does li.over mean?
    .over should be a li class name. . . .
    Example:


    • xxx


    • I just started learning, this was written by someone else, I didn’t pay attention to it, I wrote this.className = "over" in js, I didn’t pay attention to it.
      I know about the class selector, mainly because I didn’t see over in li at first, and thought it was a selection method I had never seen before.
      Thank you for your enthusiastic help.

  • Related labels:
    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