<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>
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>