css中如何去掉表格左右边框

html-css015

css中如何去掉表格左右边框,第1张

你需要控制一下,

thead th:first-child{border-left:none}

thead th:last-child{border-right:none}

tbody td:first-child{border-left:none}

tbody td:last-child{border-right:none}

CSS中显示和隐藏有多种方法,比较常见的是有display:none|blockvisibility: hidden|visible他们的区别在于,对文档流影响的区别。一般大家显示隐藏元素,比较倾向于用display。

你如果想隐藏表格,可以用table{display:none}来操作。想显示的话把display:block即可。

这个用div+css即可,定义一个大的div 里面只要用img排列即可:里面宽度自己定义

<div style="width:900pxmargin:0 auto">

<a href="#"><img src="xxxx1.jpg" style="float:leftmargin:0padding:0"></a>

<a href="#"><img src="xxxx2.jpg" style="float:leftmargin:0padding:0"></a>

<a href="#"><img src="xxxx3.jpg" style="float:leftmargin:0padding:0"></a>

...

</div>