Home >Web Front-end >HTML Tutorial >Questions about Table style? _html/css_WEB-ITnose

Questions about Table style? _html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:00:301230browse



Can Table achieve this effect? ​​Each row has a background color, and there is a gap between the upper and lower rows. I just want to know if Table can achieve this?


Reply to discussion (solution)

It can be implemented, code reference

<table style="width:300px;border:1px solid black;">		<tr style="display:block;margin:0 0 20px 0;background:grey;"><td>aaa</td></tr>		<tr style="display:block;margin:0 0 20px 0;background:yellow;"><td>aaa</td></tr>	</table>

Spacing between upper and lower lines Control by margin

I don’t see anything special

Can 123456



Table achieve this effect, each row There is a background color, and there is a gap between the upper and lower rows. I want to know if Table can achieve this?



No, it couldn’t be implemented, so I finally changed it to ulli.
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn