BasicImage

書式

BasicImage

対象

div, span, body, button, img, input, textarea, marquee, table, thead, tdtfoot, th, tr要素

継承

-

初期値

-

バージョン

独自プロパティ

対応ブラウザ

Win IE5.5以降

解説

各種フィルタ効果を一括して指定します。タグによってはposition:absoluteで絶対座標を指定する必要があります。以下のパラメータが指定できます。trueの代わりに1、falseの代わりに0を指定できます。
設定名方法
enabled フィルタ効果スイッチ (0:オフ、1:オン)
GrayScale グレースケール
Invert 色反転
Mask マスク
MaskColor マスク色
Mirror 左右反転
Opacity 不透明度
Rotation 0(0度), 1(90度), 2(180度), 3(270度)
XRay X線効果
サンプルコード
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Sample</title>
<style type="text/css"><!--
body { margin:0px;
background-image:url(bg.gif);
}
div {
filter:progid:DXImageTransform.Microsoft.BasicImage(Rotation=1);
position:absolute;
top:0px;
left:0px;
width:320px;
height:64px;
background-color:white;
}
--></style>
</head>
<body>
<div>
 ここのブロックがInternet Explorer独自のフィルタが適用されている部分になります。<br>
<img src="rainbow.gif">
</div>
</body>
</html>
実際のサンプルを実行する