Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从博主的帖子正文中删除或隐藏某些元素内容?
示例图片:示例图片(应删除红色=)
示例站点(页脚帖子):示例站点
感谢您的回答
可以实施各种技术。一些。
使用 CSS:your-element{display:none;}
your-element{display:none;}
使用 Javascript:var elem = document.getElementById(your-element);elem.style.display = "none";
var elem = document.getElementById(your-element);elem.style.display = "none";
使用 jQuery: $(your-element).css("display","none")or $(your-element).hide()or etc...
$(your-element).css("display","none")
$(your-element).hide()