<style type="text/css">
input {
padding: 2 4 0 4;
font-size: 12px;
background-color: #ece9d8;
}
</style>
</head>
<body><input type="button" value="按钮" name="B3">
</body>
input {
padding: 2 4 0 4;
font-size: 12px;
background-color: #ece9d8;
}
</style>
</head>
<body><input type="button" value="按钮" name="B3">
</body>
解决方案 »
- 点击按钮,弹出一个可编辑的对话框
- 在windows.onload()中,IE可正常设置marginTop,而火狐(margin-Top)却不能
- JS能不能自动操作别人的多框架页面?
- 请问各位我的html引用外部样式表怎么不显示定义的效果?
- 图片链接
- 各位大哥帮帮忙有谁知道 xyProgressLG 控件,用JavaScript如何隐藏该控件!!!!在线等待...急!!!
- 能不能在打开网页得时候只下载指定的$(id)里的内容
- alert提示框不显示的问题,各位高手帮帮忙!
- 怎样用Javascript检测用户关闭窗口事件?急
- 那位高手做过文件目录的树形显示?可否给例子.
- opener为何一直为空?
- 关于字符串换行的问题,困扰了好几天,达人赐教啊!!(急,在线等!)
INPUT.button
{
padding: 2 4 0 4;
font-size: 12px;
background-color:#ece9d8;
font-size: 29pt;
}
</STYLE>
</head>
<body><input type="button" value="按钮" name="B3" class="button">
</body>
stefli((桂电)) 正因为我不想一个一个的去改页面 ,所以 class="button" 不行 能否 INPUT.button 怎么改后就可以了。
switch(type)
{
case 'text':
case 'submit':
case 'reset':
case 'button':
style.border="1px solid #80B4FB";
style.backgroundColor="#C6DDFD";
style.valign="top";
style.height="18px";
style.font="normal 12px 宋体";
style.color="#000000";
break;
default:
;
}
</script>
将上面文件保存成.htc文件,比如input.htc
然后引用<STYLE>INPUT
{
behavior:url('input.htc的相对路径');
}
</STYLE>
</head>
<body><input type="button" value="按钮" name="B3" ID="Button1">
</body>