css style (table)

博客展示了仿DataGrid和输入线条的实现。通过CSS样式设置,为按钮、文本输入框等元素赋予特定的外观,如设置字体大小、颜色、边框宽度、背景色等,实现了仿DataGrid的表格样式和输入线条样式。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

仿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/>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值