0

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.

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


How do you change the form background color?

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?

4

1 回答 1

2

您可能会看到一个大纲规则。这CSS应该删除它:

object {
  border: none !important;
  outline: none !important;
}

!important一旦确定有效,您可能应该摆脱这些标签。

在浏览器中调试某些东西时,您应该能够看到在浏览器控制台中设置了哪些样式。例如,在 Chrome 中,您可以右键单击一个元素,它会准确地向您显示应用于任何给定 DOM 元素的样式。

于 2013-09-23T00:00:33.253 回答