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

WBOY
Release: 2016-06-24 12:23:17
Original
1566 people have browsed it

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



















< td>111

111 111
11 111




<!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>
Copy after login

Wouldn’t it be nice to make a nest...

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template