Udostępnij za pośrednictwem


borderLeft property

Specifies the properties of the left border of the object.

 

Syntax

Integer value = object.put_borderLeft(BSTR v);Integer value = object.get_borderLeft(BSTR* sLeft);

Property values

Type: BSTR

one or more of the space-delimited values listed in Possible Values.

width (medium)

Any of the range of width values available to the IHTMLStyle::borderLeftWidth property.

style (none)

Any of the range of style values available to the IHTMLStyle::borderLeftStyle property.

color

Any of the range of color values available to the IHTMLStyle::borderLeftColor property.

String format

border-left-width || border-left-style || <border-left-color>

CSS information

Applies To All elements
Media visual
Inherited no
Initial Value (see individual properties)

Standards information

Remarks

The IHTMLStyle::borderLeft property is a composite property that sets the width, style, and color values for the left border of an object.

All individual border properties not set by the composite IHTMLStyle::borderLeft property are set to their default values. For example, the default value for width is "medium".

If the color value is not specified, the text color is used.

For more information about supported colors, see the Color Table.

Examples

This example uses the IHTMLStyle::borderLeft property to change IHTMLStyle::borderLeftWidth, IHTMLStyle::borderLeftStyle, and IHTMLStyle::borderLeftColor for a div element.

<body>
   <div class="left"></div>
</body>
div {
   border: 2px solid black;
   height: 50px;
   width: 50px;
}
.left {
   border-left: 2px dashed #00BFFF;
}

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

Reference

IHTMLStyle::border

Other Resources

CSS Enhancements in Internet Explorer 6