I have an <object> in my page code and my background color is not white. The object is created with a white border, which I don't want.
<object>
Any ideas on how to make it border: 0px;
border: 0px;
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.
Any ideas on how to make it border: 0px; 问问题
border: 0px; 问问题
Any ideas on how to make it border: 0px; or border-color: #whatever;? Neither of those work. Can someone help me figure this out. Thanks
border-color: #whatever;
I need to know how to change the form backcolor. In the button click event, I have this.BackColor = SystemColors...
How should this part be written for, say, the color blue?
您可能会看到一个大纲规则。这CSS应该删除它:
CSS
object { border: none !important; outline: none !important; }
!important一旦确定有效,您可能应该摆脱这些标签。
!important
在浏览器中调试某些东西时,您应该能够看到在浏览器控制台中设置了哪些样式。例如,在 Chrome 中,您可以右键单击一个元素,它会准确地向您显示应用于任何给定 DOM 元素的样式。