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.
我想在我的应用程序中使用 html 对象标签,但我不想给它任何宽度或高度。
现在,当我渲染页面时,它给了我一个行空间。
我已使用以下 CSS 属性来消除此空间,但没有任何效果
margin:0px; padding:0px; border:0px;
有人可以告诉我为什么我一直有这一行空间吗?
我已将以下样式属性添加到我的 html 对象标记中,它解决了问题
不透明度:1;背景颜色:#000000;宽度:0px;高度:0px;位置:绝对;可见性:隐藏;字体大小:0px;顶部:-50px;边框:无;