可以利用CSS的content属性,属性信息如下: 定义代码如下: <style> img { content:url(https://image.png); } </style> 参考来源:http://www.runoob.com/cssref/pr-gen-content.html