开发者

Simple Table CSS border issue

I have a issue with a table. I want just a border-bottom to be set and I wanted to have no gaps in between the td's, my css looks like this:

#questions td
{
    padding: 10px;
    border-bottom: solid thin black;
}

questions is the id of my table. I've tried setting 开发者_开发知识库the border bottom of the tr but this seems to do nothing (in Chrome and Firefox at least). My table looks like this:

Simple Table CSS border issue


Try:

table { border-collapse:collapse; border-spacing:0; } 

This is the CSS replacement for the cellspacing attribute.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜