如何给table加边框?

前端的一些坑

Winter

2018-11-07

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

hello

hello

hello

hello

hello

hello

 

第99篇《如何给table加边框?》来自Winter(https://github.com/aiyld/aiyld.github.io)的站点

1个回答
Winter 2018.11.07

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

问题类别

JavaScript Ckeditor Python Webpack TypeScript Vue.js React.js ExpressJS KoaJS CSS Node.js HTML Django 单元测试 PHP Asp.net jQuery Bootstrap IOS Android