mirror of
https://gitee.com/layui/layui.git
synced 2025-11-24 08:33:12 +08:00
style: 清理代码多余空白符 (#2606)
* style: 清理代码多余空白符 * update --------- Co-authored-by: corededitor <107152508+corededitor@users.noreply.github.com>
This commit is contained in:
@@ -21,23 +21,23 @@ body{padding:20px;}
|
||||
</div>
|
||||
<div id="test1"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="test-box">
|
||||
<div id="test2"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="test-box">
|
||||
<div id="test3"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="test-box">
|
||||
<div id="test4"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="test-box">
|
||||
<div id="test5"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="test-box">
|
||||
<div id="test6"></div>
|
||||
</div>
|
||||
@@ -74,7 +74,7 @@ body{padding:20px;}
|
||||
console.log('close', color);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
colorpicker.render({
|
||||
elem: '#test2'
|
||||
,color: 'rgba(218, 121, 157, 1)' //设置默认色
|
||||
@@ -85,28 +85,28 @@ body{padding:20px;}
|
||||
console.log(color)
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
colorpicker.render({
|
||||
elem: '#test3'
|
||||
,color: '#000'
|
||||
//,alpha: true
|
||||
//,format: 'rgb' //设置输入显示格式为rgb
|
||||
});
|
||||
|
||||
|
||||
colorpicker.render({
|
||||
elem: '#test4'
|
||||
,color: '#06eeb8'
|
||||
,predefine: true //开启预定义色
|
||||
,format: 'rgb'
|
||||
});
|
||||
|
||||
|
||||
colorpicker.render({
|
||||
elem: '#test5'
|
||||
,color: '#ffd900'
|
||||
,predefine: true
|
||||
,size: 'lg'
|
||||
});
|
||||
|
||||
|
||||
colorpicker.render({
|
||||
elem: '#test6'
|
||||
,color: '#F00'
|
||||
@@ -125,4 +125,4 @@ body{padding:20px;}
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user