如何给table加边框?

默认的table是如下这样子的。

hello

hello

hello

hello

hello

hello

 

Winter2018/11/07 14:37:31

1. <table border="1">

hello hello
hello hello

2. <table border="1" cellspacing="0"> cellspacing单元格间距

hello hello
hello hello

3、<table border="1" cellspacing="0" cellpadding="0"> cellpadding单元格边距

hello hello
hello hello