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 に答える