dreamweaver文本域的宽度怎么设置,类写在哪里?

如题所述

1.新建网页文件。

2.在head里插入<style type="text/css"> #area { width:300px; height:20px; }</style>,表示设置输入文本框宽度为300像素,高度为20像素。

3.在body里插入<input type="text" id="area" />,表示定义一个输入文本框,启用area样式。

4.在IE里测试,查看效果。

温馨提示:内容为网友见解,仅供参考
第1个回答  2015-08-18
<style type="text/css">
.text1{
width:100px
}

</style>
<input type="text" class="text1" />
第2个回答  2013-05-10
<input type="text" style="width:300px; height:24px; line-height:24px;" name="textfield" id="textfield" />
相似回答