浏览器、html编辑器。1、首先,打开html编辑器,新建html文件,例如:index.html。2、在index.html中的标签中,输入css代码:button {border:0;width: 200px;height: 80px;background-color: gainsboro; cursor: not-allowed} 3、浏览器运行index.html页面,此时通过css实现了按钮的禁用样式。
css禁用按钮,用css怎么按钮
需要准备的材料分别有:电脑、浏览器、html编辑器。
1、首先,打开html编辑器,新建html文件,例如:index.html。
2、在index.html中的<style>标签中,输入css代码:
button {border:0;width: 200px;height: 80px;background-color: gainsboro; cursor: not-allowed}
3、浏览器运行index.html页面,此时通过css实现了按钮的禁用样式。
2022-12-11