Gets or sets the filter or collection of filters that are applied to the object.
HRESULT IHTMLCSSStyleDeclaration::get_filter(BSTR *p);HRESULT IHTMLCSSStyleDeclaration::put_filter(BSTR v);
- Pointer to a variable of type BSTR that receives one of the values listed in Possible Values.
- BSTR that specifies one of the values listed in Possible Values.
filtertype1 (parameter1, parameter2,...) Any filter listed in the Visual Filters and Transitions Reference. filtertype2 (parameter1, parameter2,...) Any filter listed in the Visual Filters and Transitions Reference.
Returns S_OK if successful, or an error value otherwise.
Internet Explorer 8. The -ms-filter attribute is an extension to CSS, and can be used as a synonym for filter in IE8 Standards mode. When you use -ms-filter, enclose the progid in single quotes (') or double quotes ("). Use commas (,) to separate multiple values, as shown in the Examples section.
An object must have layout for the filter to render. A simple way to accomplish this is to give the element a specified height and width, or both. However, there are several other properties that can give an element layout. For more information about these other properties, see the hasLayout property.
The shadow filter can be applied to the img object by setting the filter on the image's parent container.
The filter mechanism is extensible and enables you to develop and add filters later. For more information about filters, see Introduction to Filters and Transitions.
Not available on the Macintosh platform.