<input type="button" style="new style">

解决方案 »

  1.   

    按DHTML CSS 的说法:
    input[type="text"]{background-color:red} 
    就可以了。但我试了没用.
    <html>
    <style>
    input[type='button']{background-color:red}
    #dde{background-color:blue}</style>
    <body>
    <input type=button name=1 value=11111111 id=edd>
    <input type=text name=2 id=dde>
    <script>
    </script>
    </body>
    </html>
      

  2.   

    <html>
    <head>
    <title> New Document </title>
    <meta name="Generator" content="EditPlus">
    <meta name="Author" content="">
    <meta name="Keywords" content="">
    <meta name="Description" content="">
    <STYLE TYPE="text/css" TITLE="">
    <!--
    #text{
    border:1 solid #3399ff;
    font:9pt;
    color:#3399ff;
    }
    -->
    </STYLE>
    </head><body>
    <input type="text" id="text">
    <input type="reset">
    <input type="password">
    <input type="hidden">
    <input type="submit">
    <input type="button"></body>
    </html>
      

  3.   

    没有有不写id或者class属性的方法!?
      

  4.   

    danky() 是正确的,
    在css里用#号声明的样式引用的时候用id=,而用.号声明的样式引用的时候用class=,没有用任何符号声明的样式将自动被继承在所有使用这个标签的htm体上
      

  5.   

    还是没得到我想要的!不爽!
    css应该升级了!
      

  6.   

    .s01 {border-style:inset; border-width:1px; FONT-SIZE: 12px; HEIGHT: 14pt}
    在css表中设定
    <input type=button class="s01" value="">