Microsoft. alphaimageloaderYes
IE FilterIs used to transparently process images. Although Firefox and IE7 and above IE browser has supported transparent PNG images, but in terms of IE5-IE6 still has a certain significance.
Syntax:
Filter: progid: DXImageTransform. Microsoft. alphaimageloader (Enabled =
Benabled
, Sizingmethod =
Ssize
, Src =
Surl
)Attribute:
| Enabled |
: |
Optional. Boolean ). Set or retrieve whether the filter is activated.True|False
| True |
: |
Default Value. Filter activation. |
| False |
: |
The filter is disabled. |
|
| Sizingmethod |
: |
Optional. String ). Sets or retrieves the display mode of the image of the object to which the filter applies within the boundary of the object container.
| Crop |
: |
Cut the image to fit the object size. |
| Image |
: |
Default Value. Increase or decrease the size boundary of an object to fit the image size. |
| Scale |
: |
Scale the image to adapt to the size boundary of the object. |
|
| SRC |
: |
Required. String ). Use absolute or relativeURLThe address specifies the background image. If this parameter is ignored, the filter will not work. |
Features:
| Enabled |
: |
Read/write. Boolean ). SeeEnabledAttribute. |
| Sizingmethod |
: |
Read/write. String ). SeeSizingmethodAttribute. |
| SRC |
: |
Read/write. String ). SeeSRCAttribute. |
Note: An image is displayed between the background and content of the object within the boundary of the object container. You can also cut and change the size of the image. If the file is loaded in PNG (portablenetwork graphics) format, the transparency between 0% and 100% is also provided.
The transparency of images in PNG (portable networkgraphics) format does not affect your choice of text. That is to say, you can select the content after the completely transparent area of the PNG (portable networkgraphics) Format Image. Example: # iddiv {position: absolute; left: 140px; Height: 400; width: 400; filter: progid: dximagetransform.microsoft.alphaimageloader(src='rain1977.gif ', sizingmethod = 'Scale ');}
. Dream {filter: progid: DXImageTransform. Microsoft. alphaimageloader (src = 'images/earglobe.gif ');} msdn: http://msdn2.microsoft.com/en-us/library/ms532969.aspx
P.s. When you want to use the backgroundimage attribute, You can implement this filter if you do not want to display the original image size, but like IMG width = 100% heigth = 100%.
Example:
Span. style. Filter = "progid: dximagetransform.microsoft.alphaimageloader(src='test.jpg ', sizingmethod = 'Scale ')";
Reference: Finally, let's talk about the effect reconciliation between FF and IE. This filter effect is only applicable to IE and cannot be displayed under ff. I think this is the final problem that the predecessor said he was hard to implement. In the past, we used * or _ to fix the difference between IE and ff. This time we were looking for a way to fix the problem that FF could not be implemented.
In fact, it is easy to think. let FF display the image normally first, then use * or _ to clear the display effect under IE, and finally use * or _ to do the above filter effect. Success!
The above is an official description. In fact, in actual operations, it should be noted that the alphaimageloader filter will cause invalid links and buttons in the region. Generally, the solution is to add: position for links or buttons: when the parent layer of the area where the filter is loaded has a position: absolute position, the link cannot be restored by using position: relative. We recommend that you use the Floating Method.
Specific operations:
- Add a style: filter: progid: DXImageTransform. Microsoft. alphaimageloader (sizingmethod = scale) for the preview area (for example, preview in a div );.
- Set the src attribute for alphaimageloader.
Microsoft. alphaimageloader filter description