Home >Web Front-end >JS Tutorial >A simple way to implement gradient drop-down menu with jQuery_jquery

A simple way to implement gradient drop-down menu with jQuery_jquery

WBOY
WBOYOriginal
2016-05-16 16:10:151336browse

The example in this article describes a simple way to implement a gradient drop-down menu with jQuery. Share it with everyone for your reference. The specific implementation method is as follows:

Copy code The code is as follows:

#nav li {float:left; line-height:2em; margin:5px 0 5px 5px;}
#nav li ul {position:absolute; **display:none;** z-index:9999;width:150px; left:-999em;margin:0; background:#C00;border-radius:10px;-moz- border-radius:10px;-webkit-border-radius:10px;box-shadow:0 0 15px #F63;-moz-box-shadow:0 0 15px #F63;-webkit-box-shadow:0 0 15px #F63 ;}

I hope this article will be helpful to everyone’s jQuery programming.

Statement:
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