Home  >  Article  >  Web Front-end  >  How to hide table in css

How to hide table in css

藏色散人
藏色散人Original
2021-03-30 11:40:242757browse

How to hide table in css: first use notepad to create an html page; then create a table; finally write a class style to hide the table "display:none".

How to hide table in css

The operating environment of this article: Windows7 system, HTML5&&CSS3 version, Dell G3 computer.

Use notepad to create an html page

How to hide table in css

Create a table

How to hide table in css

In the browser Check the effect of the created table

How to hide table in css

Write a class style to hide the table display:none

How to hide table in css

Use a browser See the effect. [Recommended learning: css video tutorial]

How to hide table in css

This is all the code

<html>
<head>
<meta charset="UTF-8">
<title>css隐藏table</title>
<style>
.hide{display:none}
</style>
</head>
<body>
<table class="hide">
<tr>
<td>
这是要隐藏的table信息
</td>
</tr>
</table>
</body>
</html>

The above is the detailed content of How to hide table in css. For more information, please follow other related articles on the PHP Chinese website!

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