CSS实现简单的图片防盗链代码

论坛 期权论坛 脚本     
nimin   2020-12-19 23:22   12   0

实现方法很简单,在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)
 )
 );
}

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:1012780
帖子:202556
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP