使用CSS从视图隐藏元素
要隐藏的元素,使用可视性属性与值隐藏。您可以尝试运行以下代码以实现 visible属性-
示例
<html> <head> </head> <body> <p> This paragraph should be visible. </p> <p style = "visibility:hidden;"> This paragraph should not be visible. </p> </body> </html>
要隐藏的元素,使用可视性属性与值隐藏。您可以尝试运行以下代码以实现 visible属性-
<html> <head> </head> <body> <p> This paragraph should be visible. </p> <p style = "visibility:hidden;"> This paragraph should not be visible. </p> </body> </html>