(HTML)如何更改页面button的外观?

来源:百度知道 编辑:UC知道 时间:2024/06/07 20:35:41
如何把那些button之类的form元素的默认外观改成自定义外观?

在<head></head>之间加上:
input{width:200px; height:20px; color:#999999; background-color:#ff0000;}等等......
通过定义CSS样式改变input属性。也可将这段写在css文件里面,然后调用~

用CSS来控制,加入style属性

给你写了个例子

<input style=" width:50px; height:22px; border:#F00 1px solid; background:#69F; color:#FFF" type="submit" name="button" id="button" value="提交" />