CSS:css结尾处的问号是什么? [英] CSS: What does the question mark at the end of css do?
本文介绍了CSS:css结尾处的问号是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
维基百科中的示例css:
Example from Wikipedia css:
#content a[href^="https://"], .link-https {
background:url("images/external-link-ltr-icon.png?2") no-repeat scroll right center transparent;
padding:0 13px 0 0;
}
推荐答案
与以下内容相同:
http://foo/images/external.png?bar=baz
网站将把querystring参数和值作为请求的一部分。它可以根据提供的值来决定要提供的文件。
The site will take that querystring parameter and value as part of the request. It could make a decision on which file to serve, based on the value supplied.
很可能是一个版本号。它有助于解决您的浏览器可能缓存了图像的情况。
Likely it's a version number. It helps get around the situations where your browser may have cached the image.
这篇关于CSS:css结尾处的问号是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文