NetSuite:更新在线表单输入字段

时间:2017-07-20 18:39:22

标签: netsuite online-forms

有谁知道如何更新输入字段内的文字大小?到目前为止,这就是我所拥有的。如果我更新输入字体大小,它还会更新按钮的大小,这是我不想做的。

我还想在输入字段中添加标签但是没有多少运气。如果有人成功,请告诉我。

<NLForm>
    <style>
    h1  {color: #464646;
        font-size: 20;
        }
    form {
        width:100%;
        position:relative;
        }
    input {
        width: 400px;
        height: 40px;        
        font-size: 12px;
        }
    textarea {
        width: 530px;
        height:120px;
        }
    .btn {
        background-color: #d42027; 
        color:ffffff; 
        }


    </style>

    <HTML>
            <Head>
                <title> </title>
            </Head>

            <Body>

            <table width="50%">
                    <tbody>
                        <tr>
                            <td width="50%">
                                <table>
                                    <tbody>
                                        <tr>
                                            <td><h1>Name:</h1></td>
                                        </tr>
                                        <tr>
                                            <td><nlfirstname></nlfirstname></td><td><nllastname></nllastname></td>
                                        </tr>
                                        <tr>
                                            <td><h1>Email:</h1></td>
                                        </tr>
                                        <tr>    
                                            <td><nlemail></nlemail></td>
                                        </tr>
                                        <tr>    
                                            <td><nlcompanyname></nlcompanyname></td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td> 
                            <td width="50%">
                                <table> 
                                    <tbody>
                                        <tr>
                                            <td><h1>Comments:</h1></td>
                                        </tr>
                                        <tr>
                                            <td><nlcomments></nlcomments><nlsubsidiary></nlsubsidiary></td>  
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                            <td>
                                <table width="70%">
                                    <tbody>
                                        <tr>
                                            <td><input type="Submit" value="Send" class="btn"></td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                    </tbody>
            </table>
            </Body>

        </HTML>
    </NLForm>

1 个答案:

答案 0 :(得分:0)

如果您只想在CSS中定位特定类型的input,可以使用attribute selector

/* This will target all the input controls */

input {
  width: 400px;
  height: 40px;
}

/* This will target only the text boxes */

input[type="text"] {
  font-size: 15px;
}

/* This will target only the submit box */

input[type="submit"] {
  background-color: #d42027; 
  color: #ffffff;
  font-size: 12px;
}
相关问题