TypechoJoeTheme

代码屋

统计
登录
用户名
密码
/
注册
用户名
邮箱

代码屋

拼一个春夏秋冬|赢一个无悔人生
类目归类
Css

CSS去除img属性无图片地址时候的边框

2020-10-23
/
1 评论
/
390 阅读
/
正在检测是否收录...
10/23

网页中,img属性如果src指向的地址无法访问的话,图片会默认显示一个黑边框,可以通过下面的方法实测去除。

    img[src=''],
    img:not([src]) {
    border: 0;
    opacity: 0;
}
img去除图片边框
朗读
赞 · 0
赞赏
感谢您的支持,我会继续努力哒!

三合一收款

下面三种方式都支持哦

微信
QQ
支付宝
打开支付宝/微信/QQ扫一扫,即可进行扫码打赏哦
版权属于:

代码屋

本文链接:

https://daimawu.top/Css/1.html(转载时请注明本文出处及文章链接)

评论 (1)
  1. 2894010663 作者
    Windows 10 · Google Chrome

    {!{data:image/webp;base64,UklGRmYKAABXRUJQVlA4WAoAAAAQAAAABQQAKwEAQUxQSFYGAAAN8Mf///q02f49gpMPtRsL9YbOh9MVd9/hx0GPubv7Rufu7u5an7vgGlZvqJcPehwHxUmqofJ5J9Xkn/ftuL0jYgJQ/lf+V/5X/lf+V/5X/lf+V/5X/lf+V/5X/lf+V/5X/lf+/3/Sp59uadUsrXqUpVUPiRz8TW/rlvHKgUiItEKkFcYVWGeM2bJ1j/NJ2w6ZLpeDGTbzGJN5buzmwUpR5PKXRmW3QxlyyrgcEQnXz1v8s0NqqyD3oHluOmdO6sqRN20D0hp5ltMtrZqlVY+ytOokmAJnWMMOAjA2LezKJL3WtmyFnMbChT04esDeAyzfs6tNH2e1XhIeFXwgwviMpMQIffvTKzvks4PZqevv9W5KutKvs18QNz4pTGScbA25PW7Pf4ae+22H5CbcUfPmKOKVA2uLSv9uciOcPmnsLQXVP1U0S28HOPzFku/ePnnmRA+EhSW5k3+qqdkgzwGuy9ZumZ6SNDvaE2BqSWama9Xlg/KcsbnR1tyVMtffOsOd8eTYt6rf/9kh0Rn7G5906aTfGH6COzD99eK0lv99097V5ZTmhG11L/YG5mXnTBQBY2Z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