simple responsive popup menu, it's a jQuery plugin. http://gucheen.github.io/jQueryPopMenu/
Find a file
2016-12-29 17:09:35 +08:00
lib remove useless files 2014-01-15 17:09:08 +08:00
src Adding menu border and font-color support. Improving a bit the demo html. 2015-05-04 18:46:57 -04:30
.gitattributes Update .gitattributes 2016-12-29 17:09:35 +08:00
.gitignore fix a bug under firefox 2014-02-25 09:29:46 +08:00
index.html Adding menu border and font-color support. Improving a bit the demo html. 2015-05-04 18:46:57 -04:30
jquery.popmenu.min.js update 2014-2-27 2014-02-27 19:16:53 +08:00
LICENSE Initial commit 2014-01-15 00:57:57 -08:00
README.md update usage 2014-01-21 20:26:39 +08:00

jQueryPopMenu

simple responsive popup menu, it's a jQuery plugin.

Intro

这是一个基于 jQuery 的弹出菜单插件。有基本的自适应特性。可以设置包括背景色、菜单按钮大小、圆角或者直角等。
Demo页面中的所有icon都基于FontAwesome并非必须。可以自行更改。

Info

基于jQuery 2.0.3 构建。 Chrome, Safari, Firefox, Opera 可用。无IE支持。

Usage

使用 $(' #target ').popmenu(); 调用。 参数包括:

{
  'controller': true,       //设定是否使用控制按钮设置为false菜单将一直显示
  'width': '300px',         //菜单总宽度
  'background': '#34495e',  //菜单背景色
  'focusColor': '#1abc9c',  //菜单按钮hover时颜色
  'borderRadius': '10px',   //边角弧度设置为0为直角
  'top': '50',              //上移距离,向上移动多少就设置为多少
  'left': '0',              //左移距离,设置同上
  'iconSize': '100px'       //菜单按钮大小,目前是正方形设计(宽高相同)
}

//以上参数数值为默认值
//使用时无需受Demo影响按钮可以是纯文字内容排版自行安排设计。

注:控制按钮对应 .pop_ctrl ,即名字为 pop_ctrl 的class使用class是为了方便同时使用多个菜单各菜单间无影响。