当前第2页 返回上一页
二:利用label指向input,通过改变label样式来达到效果
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | <html>
<input type= "checkbox" checked= "checked" id= "aa" /><label for = "aa" ></label>
</html>
<style>
input[type=checkbox]{
visibility: hidden;
}
label{
width:20px;
height:20px;
border:1px solid #707070;
}
input[type=checkbox]:checked + label{
background: url(../img/duigou.jpg)no-repeat;
background-size: 100% 100%;
}
</style>
|
【推荐学习:css视频教程】
以上就是css input样式怎么修改的详细内容,更多文章请关注木庄网络博客!
返回前面的内容
相关阅读 >>
css怎么让高度自适应
css如何禁止a标签跳转
详谈css的flex布局(图文介绍)
css怎么设置元素层次
4个可以用来提高页面渲染速度的css技巧
css column-gap属性怎么用
怎么查看网站的css
css有哪几种选择器
css绝对定位详解
css中有哪些字体属性
更多相关阅读请进入《css》频道 >>
人民邮电出版社
本书对 Vue.js 3 技术细节的分析非常可靠,对于需要深入理解 Vue.js 3 的用户会有很大的帮助。——尤雨溪,Vue.js作者
转载请注明出处:木庄网络博客 » css input样式怎么修改