仿DataGrid :
<style>
.TDBT{font-size:12px;color:blue;border-top-width:0px;border-right-width:1px;border-bottom-w
idth:1px;border-left-width: 0px; height: 18px; width: 80px; background-color: #D0D0FF;
cursor: hand}/*#D0FFD0*/
</style>
<table cellSpacing=0 cellPadding=0 style="border:1px solid blue;"><tr><td>
<input type=button value=button class=tdbt><input type=text class=TDBT><input type=text
class=TDBT></td></tr><tr><td><input type=button value=button class=tdbt><input type=text
class=TDBT><input type=text class=TDBT></td></tr></table>
<br/><img src="" width=360 height=1><br/>
輸入線條(實為Text input):
<style>
.txLine{height:18px;border-color:black black
#000000;border-top-width:0px;border-right-width: 0px; border-bottom-width: 1px;
border-left-width: 0px; font-size: 16px; background-color: #FFFFEE; color: #0000FF}
</style><br/>
<nobr>請輸入文字<input type=text class=txLine></nobr>
<br/>
博客展示了仿DataGrid和输入线条的实现。通过CSS样式设置,为按钮、文本输入框等元素赋予特定的外观,如设置字体大小、颜色、边框宽度、背景色等,实现了仿DataGrid的表格样式和输入线条样式。
4949

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



