您好,欢迎来到爱玩科技网。
搜索
您的当前位置:首页css注释怎么隐藏一段,css – 如何在不对其进行注释的情况下使div隐藏?

css注释怎么隐藏一段,css – 如何在不对其进行注释的情况下使div隐藏?

来源:爱玩科技网

你需要用CSS隐藏它:

div { /* this will hide all divs on the page */

display:none;

}

如果它是具有某个类或id的特定div,则可以将其隐藏为:

Some Content

CSS:

div.div_class_name { /* this will hide div with class div_class_name */

display:none;

}

要么

Some Content

CSS:

div#div_id_name { /* this will hide div with id div_id_name */

display:none;

}

注意:您需要在< style type =“text / css”>< / style>之间包装CSS tyles。标签,示例:

div#div_id_name {

display:none;

}

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- aiwanbo.com 版权所有 赣ICP备2024042808号-3

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务