2012年9月9日 星期日

ie 半透明 繼承

遇到了ie 半透明套用 子繼承的問題
將底下子改成 filter:alpha(opacity=100)\9;/*ie all*/ 也沒有用(超蠢方法
使用了 半透明最佳實踐解決了
http://sofish.de/1916


<style type="text/css">

.rgba{
 background:rgba(0, 0, 0, 0.3);
 filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#4c000000', EndColorStr='#4c000000');
}

:root .rgba{
 filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#00000000', EndColorStr='#00000000');
}


</style>


<div class="brand rgba">
</div>

2012年7月19日 星期四

任性的firefox瀏覽器


.one{
 position:relative;
}

.two{
 position:relative;
 top:0;
 left:100px;
}

<table>
<tr>
<td class="one">
<p class="two"></p>
</td>
</tr>
</table>

在firefox下會抓不到.one的position 造成跑版,只好改成在用div包起來

.one{
 position:relative;
}

.two{
 position:relative;
 top:0;
 left:100px;
}

<table>
<tr>
<td>
<div class="one">
<p class="two"></p>
</div>
</td>
</tr>
</table>

2012年7月1日 星期日

在flash上面放一個背景透明連結


因為在ie flash
getUrl("xxx.htm","_blank")另開新連結不一定跳的出來
所以在flash上面放一個透明的htm的連結

<style type="text/css">
a.linkbox{
 background-color:rgba(0%,0%,0%,0);
 display:block;
 height:100px;
 width:100px;


 background-color:#000\9;/*ie all*/
 filter:alpha(opacity=10)\9;/*ie all*/
 _background:none;/*ie6*/
}
</style>

<a href="http://www.frt.com.tw/_images/20120524094735651_0001.jpg" target="_blank" class="linkbox"></a>


google使用
background-color:rgba(0%,0%,0%,0);

firefox和ie使用
background-color:#000;
filter:alpha(opacity=10);

ie6就沒辦法了(攤手)

2012年6月27日 星期三

DIV圖片水平垂直居中 幾乎涵蓋所有瀏覽器



DIV水平垂直居中-兼容所有浏览器,如:IE6、IE7、IE8、IE9、IE10、IE11、火狐、GOOGLE、Opera


原始位置


但實際使用後 ie6.7好像不行