針對 SexyButtons 在 IE 無法 dispaly: none 的小 fix

image

之前介紹了 SexyButtons:http://jimmyyen.blogspot.com/2010/05/sexybuttons.html

實際使用的結果發現,在 Firefox 下,加上 style=’display: none;’,就可以把 button 給隱藏起來,不過在 IE 是不行的。

<a class="sexybutton sexysimple" style="display: none;" href="#">我是按鈕</a>

簡單的作法,先在 CSS 裡加上:

.invis { display: none ;}

然後你要隱藏的 button 則在 class 裡加入 invis

<a class="sexybutton sexysimple invis" href="#">我是按鈕</a>

這樣就可以藏起來。

留言

這個網誌中的熱門文章

有點誇張的準專業機.Minolta Alpha 7 (Dynax 7、Maxxum 7).2000

在 Excel 裡轉換 Unixtime 格式

Lightroom.製作並匯出 Preset