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就沒辦法了(攤手)