CSS3中的appearance属性可以将文本框显示成按钮的形状,太给力了!

<!doctype>
<html>
<head>
<title>Html5</title>
<style type="text/css">
.pedo{
-webkit-appearance:button;
-moz-appearance:button;
apperance:button;
height:30px;
width:300px;
text-align:center;
}
</style>
</head>
<body>
<input class="pedo" type="text" value="20" />
</body>
</html>
浙公网安备 33010602011771号