带参数的图像 - HTML [英] Image with parameter - HTML

查看:103
本文介绍了带参数的图像 - HTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道如何设定问题。我不知道下面的标签是如何工作的......

 < img src =img.png?value = 23\" /> 

这个标签工作正常。并正确渲染图像。
值= 23 是否有一些影响?或者它被浏览器忽略了?

我甚至不知道如何Google!是否像传递参数给图像?如果是这样的话,如何检索value属性。这个参数是否有任何意义

解决方案

对于这个示例,我不知道这是什么意思
但有可能写出

 < img src =path_img.png?<?php time()?> /> 

强制您的浏览器不使用缓存下载资源


I do not know how to frame the question. And I do not know how the below tag is working...

<img src="img.png?value=23"/>

This tag is working fine. And its rendering the image correctly. Does the value=23 has some effect??? or It is been ignored by Browser??

I do not even know how to Google this!!! Is it like passing parameter to the Image??? If that is the case, how to retrieve the value attribute. Does the parameter has any sense

解决方案

For this sample i don't know what does it mean But it's possible to write

<img src="path_img.png?<?php time() ?>" />

to force your browser to download resource without using cache

这篇关于带参数的图像 - HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆