table中如何设置内部边框为虚线

qiuqiu1990 2010-05-18 12:48:19
在.net中,一个表格,怎么设置它的外边的边框是实线,而里边的边框是虚线呀
...全文
5550 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
辰爸 2010-05-18
  • 打赏
  • 举报
回复
<style>
.v {border-collapse: collapse}
.v td{border:1px dashed #000;width:100;height:25}
</style>
<table class="v">
<tr>
<td>demo</td><td>demo</td><td>demo</td>
</tr>
<tr>
<td>demo</td><td>demo</td><td>demo</td>
</tr>
<tr>
<td>demo</td><td>demo</td><td>demo</td>
</tr>
</table>


附:表格边线的样式
border-style: <值>
  none:无样式;
  dotted:点线;
  dashed:虚线;
  solid:实线;
  double:双线;
  groove:槽线;
  ridge:脊线;
  inset:内凹;
  outset:外凸。
q107770540 2010-05-18
  • 打赏
  • 举报
回复
css 样式 来实现吧
qiuqiu1990 2010-05-18
  • 打赏
  • 举报
回复
有没有人可以指点一下,急
qiuqiu1990 2010-05-18
  • 打赏
  • 举报
回复
我知道了,谢谢了
flyerwing 2010-05-18
  • 打赏
  • 举报
回复
附:表格边线的样式
border-style: <值>
  none:无样式;
  dotted:点线;
  dashed:虚线;
  solid:实线;
  double:双线;
  groove:槽线;
  ridge:脊线;
  inset:内凹;
  outset:外凸。
qiuqiu1990 2010-05-18
  • 打赏
  • 举报
回复
tianshikuqi8

(蹒跚学步) ,我想问一下,你的这段代码是放在源代码里面的吗,为什么我放在源代码中,说不能嵌套呢
koukoujiayi 2010-05-18
  • 打赏
  • 举报
回复
要做的精致也要化点时间!下面是3行3列的代码及css:
   <table cellpadding="0" cellspacing="0" style="width:200px; border:solid 1px #cccccc;">
<tr>
<td class="rightBottom" >
 </td>
<td class="rightBottom" >
 </td>
<td class="bottom1">
 </td>
</tr>
<tr>
<td class="rightBottom" >
 </td>
<td class="rightBottom">
 </td>
<td class="bottom1">
 </td>
</tr>
<tr>
<td class="right1">
 </td>
<td class="right1">
 </td>
<td>
 </td>
</tr>
</table>


    <style type="text/css">
.rightBottom
{
border-right-style: dashed; border-bottom-style: dashed; border-right-width: 1px; border-bottom-width: 1px; border-right-color: #cccccc; border-bottom-color: #cccccc
}
.bottom1
{
border-bottom-style: dashed; border-bottom-width: 1px;border-bottom-color: #cccccc
}
.right1
{
border-right-style: dashed; border-right-width: 1px; border-right-color: #cccccc;
}
</style>
mngzilin 2010-05-18
  • 打赏
  • 举报
回复
楼上行

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧