CSS實(shí)現(xiàn)簡(jiǎn)單的圖片防盜鏈代碼
實(shí)現(xiàn)方法很簡(jiǎn)單,在CSS中添加以下代碼:
img {
filter:expression(
this.不能去掉 ? "" :
(
(!this.complete) ? "" :
this.runtimeStyle.filter = ("progid:DXImageTransform.Microsoft.AlphaImageLoader(src=''" + this.src + "'')") +
String(this.不能去掉 = true).substr(0, 0) +
(this.src = "http://siyizhu.com/styles/nicky/images/clear.gif").substr(0, 0)
)
);
}
相關(guān)文章
HTML相關(guān)知識(shí)點(diǎn)總結(jié)
本文詳細(xì)總結(jié)了HTML的相關(guān)知識(shí)點(diǎn),有助于大家初步的學(xué)習(xí)或之后的復(fù)習(xí),感興趣的小伙伴一起來(lái)看看吧,可以參考一下2021-08-08