針對部份 IE 瀏覽器不支援 png 不透明的問題,作者提供一組 iepngfix.htc 文件修正辦法。
<!--[if lt IE 7]>
<style type="text/css">
.photo span { behavior: url(iepngfix.htc); }
</style>
<![endif]-->
範例:
IE PNG Fix 2.0 Alpha 4 Go 。
Trash All IE Hacks Go 。
針對無障礙網頁及部份不喜歡空的 span 標記的標籤,作者也提供使用 jQuery 的解決方案。
在 <head> 與 </head> 標籤之間插入下面的代碼:
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
//prepend span tag
$(".photo a").prepend("<span></span>");
});
</script>
範例:請按瀏覽器的檢視 原始碼查看 Go 。
|
|