English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML object border-Eigenschaft

Die border-Eigenschaft spezifiziert die Breite der Rahmen um <object>. HTML5 Die <object> border-Eigenschaft wird nicht unterstützt, verwenden Sie stattdessen CSS

  HTML <object> Tag

Online-Beispiel

Rahmenbreite von3Pixel des<object>:

!DOCTYPE html>
<html>
<head>
<title>HTML:<object> border 属性 - 基础教程网(oldtoolbag.com)</title>
</head>
<body>
<object width="200" height="200" data="bookmark.swf" border="3></object>
</body>
</html>
Test it out ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the border attribute.

Definition and Usage

HTML5 The <object> border attribute is not supported. Please use CSS instead.

In HTML 4.01 In the specification, the <object> border attribute has been deprecated.

The border attribute specifies the width of the border around the <object>.

Compatibility Notes

In HTML 4.01 In the specification, the <object> border attribute has been deprecated. Please use CSS instead.

CSS Syntax: <object style="border:5px solid black">

CSS Example: <object> with border

In our CSS tutorial, you can find more aboutborder attributedetails.

Syntax

<object border="pixels">

Attribute Value

ValueDescription
pixelsBorder width in pixels.
  HTML <object> Tag