The problem of merging adjacent cells. Eliminate the borders of each cell in the table. What is the purpose of placing the
tag in the header? Generally, the title tag is placed after the
tag to name the table. Why put it in style?
Moreover, there is such a big difference between putting it in the style tag and not putting it in the style tag.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>修改表格的边框</title> <style type="text/css"> <caption>合并单元格之间的边框</caption> table.one{ border-collapse:collapse; border:#0099cc; } </style></head><body> <table width="191" height="129" border="2" class="one"> <tr bordercolor="#0099cc"> <td width="87">Hui</td> <td width="86">Bobo</td> </tr> <tr bordercolor="#0099cc"> <td>Huiji</td> <td>Jhn</td> </tr> </table></body></html>
Copy after login
Add tag effect
Effect after removing it
Reply to discussion (solution)
In addition, the style will not work if the format is messed up
You can remove all the styles in style and see the effect. This problem is a bit 2
It is wrong to put the
tag in