Home > Article > Web Front-end > The table requires border lines but not grid lines. How to set this style?_html/css_WEB-ITnose
Only 4 borders, no other grid lines
To be completed in CSS, delete the table border attribute in HTML. Define the table in CSS:
border:1px black solid;
The color is in the middle, please set the color yourself.
To complete it in CSS, delete the table border attribute in HTML. Define the table in CSS:
border:1px black solid;
The color is in the middle, please set the color yourself.
This way there are no borders at all
6a74014ee44f5deb5894267f99b68016
ef1cac8df639bc9110cb13b8b5ab3dd7
f53edfa5cff0d46233f3176c81bd5740
H1.mylayout{border:1px black solid;}
a2d87b9af1e305217ec9648d1e8a0a47
34934661d7147ca926b095899343bad0
a64997a0904a094b4570728d7f327acd
184cd8e87c78440364cd1461bb51aa47
a34de1251f0d9fe1e645927f19a896e8
b6c5a531a458a2e790c1fd6421739d1c111b90dd5946f0946207856a8a37f441edf
b6c5a531a458a2e790c1fd6421739d1c111b90dd5946f0946207856a8a37f441edf
<!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">table{border:1px solid #000;}</STYLE></head><body><table border="0" cellspacing="0" cellpadding="0"><tr><td>111</td><td>111</td><td>11</td></tr><tr><td>11</td><td>111</td><td>111</td></tr></table></body></html>
Wouldn’t it be nice to make a nest...