About the border cannot be displayed when the td content of the table is empty_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:11:29
Original
1665 people have browsed it

My code is as follows:

<table class="right_table" border="1" cellpadding="1" cellspacing="0">CSS代码:[code=CSS].right_table {	width:700px;	border-bottom:5px solid #999;	border-left:3px solid #ccc;	border-top:3px solid #ccc;	border-right:5px solid #999;}
Copy after login
[/code]


Reply to discussion (solution)

<!DOCTYPE HTML><html>	<head>		<meta charset="gb2312" />		<title></title>		<style>			table {				border-collapse:collapse;			}			td {				border:1px solid red;			}		</style>	</head>	<body>		<table>			<tr>				<td>1-1--1</td>				<td>1-1--1</td>			</tr>			<tr>				<td>1-1--1</td>				<td></td>			</tr>					</table>	</body></html>
Copy after login



The key
border-collapse:collapse;

td must have a standing position  That’s fine too You don’t lose anything if the border doesn’t come out
You take it Isn’t there a space in the table td generated by the tool?
It doesn’t matter how you modify the style. There must be something in the td. This is the rule! ! Iron! !

border-collapse:collapse;
is the key.

source:php.cn
View details mean_html/css_WEB-ITnose"> Previous article:What does View details mean_html/css_WEB-ITnose Next article:No response when submitting the html form? _html/css_WEB-ITnose
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