jQuery选择 type="button" 的button和input元素

2026-02-21 03:22:32

1、新建html文件

jQuery选择 type=

2、创建form表单

jQuery选择 type=

3、预览效果如图

jQuery选择 type=

4、引入jquery.js

jQuery选择 type=

5、jQuery选择 type="button" 的 button 元素和 input 元素,并设置背景颜色

jQuery选择 type=

6、预览效果如图

jQuery选择 type=

猜你喜欢