共用方式為


pixelRight property

Sets or retrieves the right position of the object.

Syntax

Integer value = object.put_pixelRight(Integer v);Integer value = object.get_pixelRight(Integer* iRight);

Property values

Type: long

The right position in pixels.

String format

<integer>

CSS information

Applies To All elements
Media visual
Inherited no
Initial Value

Remarks

The IHTMLRuleStyle2::pixelRight property reflects the value of the Cascading Style Sheets (CSS) IHTMLRuleStyle2::right attribute.

Unlike the IHTMLRuleStyle2::right property, the IHTMLRuleStyle2::pixelRight value is an integer, not a string, and is always interpreted in pixels.

For more information about how to access the dimension and location of an object on the page through the Dynamic HTML (DHTML) Document Object Model (DOM), see Measuring Element Dimension and Location with CSSOM in Internet Explorer 9.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IHTMLRuleStyle2::posRight