在 Html 中 如何实现 虚线

qxjavajava 2005-09-27 11:18:29
在 html中 的一个table表中 如何用 虚线作为 列与列间的分割先 。

谢谢
...全文
1895 21 打赏 收藏 转发到动态 举报
写回复
用AI写文章
21 条回复
切换为时间正序
请发表友善的回复…
发表回复
ziyou_128 2005-10-12
  • 打赏
  • 举报
回复
你为什么不用CSS试试了,用里面的边框选项.我试过的,不过不知道你说的是不是那样,因为我现在还在学习之中,错了不要笑哦.呵呵!
lee_wei 2005-10-09
  • 打赏
  • 举报
回复
图片占不了多少带宽,但是虚线使用背景填充来做是违反我们正常的思维的
我还是建议用web标准
evilpaw 2005-10-08
  • 打赏
  • 举报
回复
强烈推荐用图片,不用考虑兼容性,及版本的问题.
至于楼上说的图片占带宽.在这乱说,
强烈同意faly说的.
faly 2005-10-03
  • 打赏
  • 举报
回复
最好是用图片
几个字节的图片能占多少带宽?
fox1999 2005-10-03
  • 打赏
  • 举报
回复
用图片。
Mapleleaf123 2005-10-03
  • 打赏
  • 举报
回复
要IE5.5以上才能看到的,好像是```
pizi611 2005-09-30
  • 打赏
  • 举报
回复
dashed : 在MAC平台上IE4+与WINDOWS和UNIX平台上IE5.5+为虚线。否则为实线
x810929 2005-09-30
  • 打赏
  • 举报
回复
日,有那么麻烦么??
lee_wei 2005-09-30
  • 打赏
  • 举报
回复
lz可以考虑用div,lh,li代替table,看了下面我简单写出的代码你就觉得实用了

css:
#ContentBox {
width: 588px;
margin: 0px;
padding: 0px;
display: block;
float: right;
line-height: 150%;
}
#ContentBox ul {
border: medium none;
margin: 0px;
padding: 0px 10px 0px 0px;
line-height: 250%;
list-style-type: none;
background: #FFF
}
#ContentBox li {
margin: 0px;
padding-left: 15px;
font-weight: normal;
border-bottom: 1px dashed #CCC; //实现你要的虚线效果,或者其他多种效果
}

html中
<div id="ContentBox">
<ul>
<li>11111111</li>
<li>2222222</li>
<li>333333</li>
</ul>
</div>

这就是用了web标准
William_Wang 2005-09-30
  • 打赏
  • 举报
回复
图片占带宽
aduosite 2005-09-28
  • 打赏
  • 举报
回复
用图片吧兄弟,图片比那样弄出来的漂亮
x810929 2005-09-28
  • 打赏
  • 举报
回复
楼上的。。。1px的dotted和dashed效果是一样的。。。
cqf4661 2005-09-28
  • 打赏
  • 举报
回复
border-right:1px dotted #000
border-left:1px dotted #000
No001 2005-09-27
  • 打赏
  • 举报
回复
style="border-style:dashed

------------------------------
试了 可以
qxjavajava 2005-09-27
  • 打赏
  • 举报
回复
其实 我只是想让 很多的列与列间的分割线 中的一条 为虚线 该怎么办啊
HHH3000 2005-09-27
  • 打赏
  • 举报
回复
style="border-style:dashed "
skywatcher 2005-09-27
  • 打赏
  • 举报
回复
设置列边框样式啊:
style="border-left:dashed 1 black"
x810929 2005-09-27
  • 打赏
  • 举报
回复
border:2px dotted #000;
skywatcher 2005-09-27
  • 打赏
  • 举报
回复
要么就画图,不然就这种方法简单了,border-style有多种格式可选的

sStyle String that specifies or receives one of the following values.none Default. No border is drawn, regardless of any specified borderWidth.
dotted Border is a dotted line. This value is supported on the Macintosh platform, as of Microsoft® Internet Explorer 4.01, and on the Microsoft Windows® platform, as of Internet Explorer 5.5. It renders as a solid line on Unix platforms, and on Windows systems running earlier versions of Internet Explorer.
dashed Border is a dashed line. This value is supported on the Macintosh platform as of Internet Explorer 4.01 and on the Windows platform, as of Internet Explorer 5.5. It renders as a solid line on Unix platforms, and on Windows systems running earlier versions of Internet Explorer.
solid Border is a solid line.
double Border is a double line drawn on top of the background of the object. The sum of the two single lines and the space between equals the borderWidth value. The border width must be at least 3 pixels wide to draw a double border.
groove 3-D groove is drawn in colors based on the value. The borderWidth property of the object must be specified for the style to render correctly.
ridge 3-D ridge is drawn in colors based on the value.
inset 3-D inset is drawn in colors based on the value.
window-inset Border is the same as inset, but is surrounded by an additional single line, drawn in colors based on the value.
outset 3-D outset is drawn in colors based on the value.
qxjavajava 2005-09-27
  • 打赏
  • 举报
回复
对不起 我可能是表述的有问题 我想要的是

竖起来的 点组成的 虚线...................... 就是这种线
加载更多回复(1)

61,112

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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