在Dreamweaver中表格的边框怎么能去除。

在Dreamweaver中表格的边框怎么能去除。
我计划是做一个图片滚动条,但是要固定好在网页中的位置,所以我将一幅图片切割成很多块,用表格将图片安置好,然后将其中一个位置放置图片滚动条,可是用表格拆分了图片之后发现表格边框位置都会有一个白色的空白条,整个图片也就显得不够紧凑完整,请问怎么才能实现将切割的图片拼凑完整,中间没有间隙。或者有其他能实现的办法也可以。
djyuning520说的不行,虽然没有间隙了,但是图片都排列乱了
截个图看看撒。

上面的代码不是拿过来就用的。
去除缝隙,只需要:cellspacing="0" border="0"含悔 就可以了。
没写的还有colspan 和 rowspan ,
上下对应齐了,才不乱。

------------------------------------------------------------

默认的table是有一些属性的~~
重新定义这些属性就可以了~

css reset知道吗?就是把默认的html样式归零!

制作旁老胡网页的时候,我们一般都建立一个样式表,把网页中的html样式归零或者运拦设置为一个兼容个浏览器的样式表文件~~下面的代码就是把常用的html标签都回复初始值。让其在所有浏览器下都相同!

html,body,div, h1,h2,h3,h4,h5,h6,p, ol,ul,dl,dt,dd, frame,frameset,form,fieldset, blockquote,address,hr,pre { display: block } button,textarea,input,select { display: inline-block } li { display: list-item } head { display: none } table { display: table } caption { display: table-caption } thead { display: table-header-group } tbody { display: table-row-group } tfoot { display: table-footer-group } tr { display: table-row } col { display: table-column } colgroup { display: table-column-group } td,th { display: table-cell } caption { text-align: center } th { font-weight: bolder; text-align: center } body { margin: 8px } blockquote { margin-left: 40px; margin-right: 40px } h4,p,blockquote,ul,fieldset,form,ol,dl { margin: 1.12em 0 } h1 { font-size: 2em; margin: 0.67em 0 } h2 { font-size: 1.5em; margin: 0.75em 0 } h3 { font-size: 1.17em; margin: 0.83em 0 } h5 { font-size: 0.83em; margin: 1.5em 0 } h6 { font-size: 0.75em; margin: 1.67em 0 } pre { white-space: pre } h1,h2,h3,h4,h5,h6,strong { font-weight: bolder } cite,em,var,address { font-style: italic } pre,code,kbd,samp { font-family: monospace } sub,sup { font-size: .83em } sub { vertical-align: sub } sup { vertical-align: super } table { border-spacing: 2px; } thead,tbody,tfoot { vertical-align: middle } td, th { vertical-align: inherit } del { text-decoration: line-through } ins { text-decoration: underline } hr { border: 1px inset } ol, ul, dd { margin-left: 40px } ol { list-style-type: decimal } ol ul, ul ol, ul ul, ol ol { margin-top: 0; margin-bottom: 0 } :link, :visited { text-decoration: underline } br:before { content: "\A" } :before, :after { white-space: pre-line } :focus { outline: thin dotted invert }
在插入表格时把 边框粗细 单元格间边距 单元格间距 均设为0像素
你用鼠标调整有时候就会这样 要选中你要调整的部分 在代码处找这个值 改成0就可以了
文件发过来,我帮你调好发给你,你两个对比下就知道哪里有问题了!
← 上一篇: 下一篇: →