Home  >  Article  >  Web Front-end  >  The table requires border lines but not grid lines. How to set this style?_html/css_WEB-ITnose

The table requires border lines but not grid lines. How to set this style?_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:23:171564browse

Only 4 borders, no other grid lines


Reply to discussion (solution)

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
fd273fcf5bcad3dfdad3c41bd81ad3e5
a34de1251f0d9fe1e645927f19a896e8
b6c5a531a458a2e790c1fd6421739d1c11b90dd5946f0946207856a8a37f441edf
b6c5a531a458a2e790c1fd6421739d1c111b90dd5946f0946207856a8a37f441edf
0f2d6b6549b1008808c133931ec1a1c9111b90dd5946f0946207856a8a37f441edf
fd273fcf5bcad3dfdad3c41bd81ad3e5
f16b1740fad44fb09bfe928bcc527e08
f2475bc0d02a524246eacdb398ec424e

6eac519e8537e4205ddd37e30a7b548a

<!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...

Statement:
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