layui open changes button color

Release: 2020-06-10 17:38:32
forward
5928 people have browsed it

layui open changes button color

1. Create a new folder and css file under layer:

layui open changes button color

css content:

body .layui-ext-yourskin .layui-layer-btn0{    
  border-color: #55ff83;    
  background-color: #5aff53;    
  color: #4736ff;
}
Copy after login

HTML content:

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="layui/css/layui.css">
</head>
<body>
<button id="button" >一个标准的按钮</button>
<script src="layui/layui.js"></script>
<script>
    layui.use([&#39;form&#39;,&#39;layer&#39;,&#39;jquery&#39;], function(){
        var form = layui.form;
        var layer=layui.layer;
        var $=layui.jquery;
            layer.config({
            extend: &#39;zidiny/123.css&#39; //同样需要加载新皮肤
        });
        $("#button").click(function () {
            layer.open({
                title: &#39;在线调试&#39;
                ,skin: &#39;layui-ext-yourskin&#39; //只对该层采用myskin皮肤
             ,content: &#39;可以填写任意的layer代码&#39;
            });
        })
    });
</script>
</body>
</html>
Copy after login

The effect is as follows:

layui open changes button color

##For more

layui knowledge, please pay attention to PHP Chinese Netlayui tutorial column

The above is the detailed content of layui open changes button color. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:cnblogs.com
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!