我使用http://placehold.it把图像大小,但我不知道如何插入图像,例如:如何插入图像placehold.it
<img src="image/abc.png" alt="" />
,当我使用placehod.it作为SRC = “https://placehold.it/320x150”
我使用http://placehold.it把图像大小,但我不知道如何插入图像,例如:如何插入图像placehold.it
<img src="image/abc.png" alt="" />
,当我使用placehod.it作为SRC = “https://placehold.it/320x150”
http://placehold.it仅仅是提供虚拟图像,以填补你的内容。您不用它来设置图像大小。使用此:
<img src="image/abc.png" style="width:320px;height:150px" alt="" />
您可以通过只请求以下URL使用图像占位符:
第一个参数定义的宽度,第二个参数是高度。
<img src="http://placehold.it/200x200">