Img {
height: 50px;
Width: 500 px;
Position: relative;
display: block;
}
Img: : before {
content: "";
Height: 60 px;
Width: 500 px;
Background - color: RGB (230, 230, 230);
position: absolute;
display: block;
left: 0;
}
Img: : after {
Content: "image loading failure";
display: block;
Color: RGB (100100100);
position: absolute;
left: 0;
Width: 500 px;
}
CodePudding user response:
The Alt attribute is not can?
CodePudding user response:
Is the network problems didn't load out or itself is fake pictures?
CodePudding user response:
Alt="" added directly, if is the original picture without load, need a custom picture replace it?
CodePudding user response: