支付宝赞助帐号:service@kuitao8.com 

下载地址

jquery bootstrap颜色选择器效果下载

Created2014-06-08   Views 6234    Author 懒人程序
jquery bootstrap颜色选择器效果下载
$(document).ready( function() {

            $('.demo').each( function() {
                //
                // Dear reader, it's actually very easy to initialize MiniColors. For example:
                //
                //  $(selector).minicolors();
                //
                // The way I've done it below is just for the demo, so don't get confused
                // by it. Also, data- attributes aren't supported at this time...they're
                // only used for this demo.
                //
				$(this).minicolors({
					control: $(this).attr('data-control') || 'hue',
					defaultValue: $(this).attr('data-defaultValue') || '',
					inline: $(this).attr('data-inline') === 'true',
					letterCase: $(this).attr('data-letterCase') || 'lowercase',
					opacity: $(this).attr('data-opacity'),
					position: $(this).attr('data-position') || 'bottom left',
					change: function(hex, opacity) {
						if( !hex ) return;
						if( opacity ) hex += ', ' + opacity;
						try {
							console.log(hex);
						} catch(e) {}
					},
					theme: 'bootstrap'
				});

            });

		});
上一篇: jquery颜色选择器colpick下载
下一篇: jquery颜色选择器生成css样式
支持键盘 ← →

邮件订阅

订阅我们的精彩内容