关于修改复选框样式问题

这里因为写树的问题,我用图片替换复选框

步骤二:

           1:要在input标签里面写 style='-webkit-appearance: none',这个东西写在style里面无效好像

           2:在css里面写其他想要的样式

          当遇到样式在css中分开写,部门不起作用时,我是用分开写的方法解决的

         .selected{
            width: 15px !important;
            height: 15px !important;
            margin: 17px 0px 0px 0px !important;
            background : url(../images/tree/1.png) no-repeat !important;
        }
        .selecte{
            width: 15px !important;
            height: 15px !important;
            margin: 17px 0px 0px 0px !important;
            background : url(../images/tree/2.png) no-repeat !important;
        }

此问题耗费我1小时,特此记录!

猜你喜欢

转载自blog.csdn.net/qq_20594019/article/details/96483031