我在DreamWeaver上拖了一个文本框``然后我为了使我的文本框`我想使我的文本框的边框是蓝色的,并且没有3D效果``我朋友说用CSS,可是我不大懂`有人能帮忙吗?

解决方案 »

  1.   

    楼主:
    建立如下样式表文件,如果不会你用记事本写如下:
    /**
    INPUT
    {
        border-right: #0000ff thin solid;
        border-top: #0000ff thin solid;
        border-left: #0000ff thin solid;
        border-bottom: #0000ff thin solid;
    }
    **/
    .Myinput
    {
        border-right: #0000ff thin solid;
        border-top: #0000ff thin solid;
        border-left: #0000ff thin solid;
        border-bottom: #0000ff thin solid;
    }
      

  2.   

    其中/***/之间的样式,规定页面上所有的input都采用定义的样式
    Myinput,可以在你需要的里里使用
    如:
    <html  >
    <head>
        <title>Untitled Page</title>
        <link href="StyleSheet.css" type=text/css rel=stylesheet >
    </head>
    <body>
        <table style="width: 339px; height: 115px">
           
             <tr>
                <td style="width: 3px">
                <input type="text" id="mytext" name="mytext" disabled=disabled value="Hello" class="Myinput">
                </td>
            </tr>
        </table></body>
    </html>
      

  3.   

    关于CSS的文档网上一搜就有,想要学做网站不会CSS可不行,好好学吧
      

  4.   

    input中的class 属性就是指定采用那个样式
    这里里可以任意指定