Questions about Table style? _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:00:30
Original
1204 people have browsed it



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>
Copy after login

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.
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template