<style>
.formclass {
margin: 0px;
padding: 0px;
height: auto;
width: auto;
border: 1px solid #3159bd;
background-color: #f7f7f7;
}
.formclass_show2 {
background-color: #dee7ff;
height: auto;
width: auto;
margin: 0px;
padding: 0px;
border-top-width: 0px;
border-right-width: 0px;
border-bottom-width: 1px;
border-left-width: 0px;
border-top-style: none;
border-right-style: none;
border-bottom-style: solid;
border-left-style: none;
border-top-color: #3159bd;
border-right-color: #3159bd;
border-bottom-color: #3159bd;
border-left-color: #3159bd;
}
</style>
<table>
<tr>
<td><input size="10" type="text" style="width:100%" value="2005/03/31 " class="formclass_show2" readonly></td>
<td><input size="10" type="text" style="width:100%" value="2005/03/31 " class="formclass" readonly></td>
</tr>
</table>
css style(about input type="text")
最新推荐文章于 2025-06-13 18:04:00 发布
博客展示了使用CSS为表单输入框设置样式的代码。定义了.formclass和.formclass_show2两个类,分别设置了输入框的边距、内边距、高度、宽度、边框和背景颜色等样式,并在表格中应用这些样式到输入框。
1760

被折叠的 条评论
为什么被折叠?



