Compartilhar via


borderWidth property

Specifies the thicknesses of the left, right, top, and bottom borders of an object.

 

Syntax

Integer value = object.put_borderWidth( v);Integer value = object.get_borderWidth(* sWidth);

Property values

Type: BSTR

up to four of the values listed in Possible Values.

medium (medium)

Initial value. The default thickness.

thin (thin)

Less than the default thickness.

thick (thick)

Greater than the default thickness.

width (width)

Thickness specified by a floating-point number, followed by a supported length unit.

String format

[ medium | thin | thick | <width> ] {1,4}

CSS information

Applies To All elements
Media visual
Inherited no
Initial Value medium

Standards information

Remarks

Up to four different thicknesses can be specified, in the following order: top, right, bottom, left.

  • If one width is specified, it is used for all four sides.
  • If two widths are specified, the first is used for the top and bottom borders, and the second is used for left and right borders.
  • If three widths are specified, they are used for top, right/left, and bottom borders, respectively.

The border does not render if the IHTMLCSSStyleDeclaration::borderStyle property is set to none, or if IHTMLCSSStyleDeclaration::borderWidth is set to "0".

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

Reference

IHTMLCSSStyleDeclaration::border

Other Resources

CSS Enhancements in Internet Explorer 6