search

Home  >  Q&A  >  body text

html5 - 纯CSS怎么做出这种一模一样的导航条导航块那里还有个下拉菜单,请大家指导一下

高洛峰高洛峰2784 days ago1432

reply all(5)I'll reply

  • 怪我咯

    怪我咯2017-04-17 14:49:50

    p.title>p.list
    .list{
    display:none;
    }
    .title:hover .list{
    display:block;
    }
    The principle is probably to use css pseudo-classes to achieve hover state response, thereby changing the display of drop-down content.

    reply
    0
  • 阿神

    阿神2017-04-17 14:49:50

    drop-down menu, if it is css, you can directly use the parent class:hover 子class and then set opacity:1 or even add a transition effect.

    reply
    0
  • 黄舟

    黄舟2017-04-17 14:49:50

    Use CSS pseudo-classes to achieve class:hover. If you want to use transition, there are several ways

    reply
    0
  • 高洛峰

    高洛峰2017-04-17 14:49:50

    You can use browser development tools to view its code structure. iQiyi listens for click events. Change the drop-down menu from display:none; to display:block; if you use CSS, you can only use pseudo classes to implement it. The reply above is like that.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 14:49:50

    You can only create the exact same style using CSS, but all click events must be done with js.

    reply
    0
  • Cancelreply