改变按钮有以下两种方式: 1,直接在元素上定义样式,代码如下: <input type="button" id="searchUser" style="width:124px;text-align:center;" value="查询坐席" onclick="searchUser()"/> 2,使用css控制,给按钮添加一个类名,如: <input type="button" value="查询坐席" class="btn"/> <style> .btn{width:100px; text-align:center; } </style>
时间: 2025-01-11 15:54:01