html5 - 纯CSS怎么做出这种一模一样的导航条导航块那里还有个下拉菜单,请大家指导一下
高洛峰
高洛峰 2017-04-17 14:47:50
0
5
1450

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(5)
刘奇

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.

阿神

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.

黄舟

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

小葫芦

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.

Ty80

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template