您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

使用 CSS 设置每个启用元素的样式

2024/3/12 7:07:55发布19次查看
要为每个启用的元素设置样式,请使用css的:enabled选择器。
示例您可以尝试运行以下代码来为启用的元素设置样式
在线演示
<!doctype html><html> <head> <style> input:enabled { background: blue; } </style> </head> <body> <form action = ""> subject <input type = "text" name = "subject"><br> student: <input type = "text" name = "student"><br> age: <input type = "number" name = "age" disabled><br> </form> </body></html>
以上就是使用 css 设置每个启用元素的样式的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product