你需要用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;
}