CSS参考手册
图像值 | Image Values
图像 | CSS Images
CSS图像是CSS的一个模块,它定义了可以使用何种类型的图像<image>
类型,包含URL、渐变和其他类型的图像%29,如何调整它们的大小,以及它们和其他替换的内容如何与不同的布局模型交互。
参照系
特性
image-orientation
image-rendering
object-fit
object-position
功能
linear-gradient()
radial-gradient()
repeating-linear-gradient()
repeating-radial-gradient()
-
element()
%28https://developer.mozilla.org/en-US/docs/web/css/Element%28%29%29
数据类型
<image>
<uri>
指南
使用CSS梯度显示特定类型的CSS图像,梯度,以及如何创建和使用这些。在CSS中实现图像精灵描述将多个图像组合在一个文档中的常用技术,以保存下载请求并加快页面可用性。
规格
Specification |
Status |
Comment |
---|---|---|
CSS Image Values and Replaced Content Module Level 4 |
Working Draft |
|
CSS Image Values and Replaced Content Module Level 3 |
Candidate Recommendation |
|
Compatibility StandardThe definition of 'CSS Gradients' in that specification. |
Living Standard |
Standardizes the -webkit prefixed gradient value functions |
CSS Values and Units Module Level 3The definition of '<url>' in that specification. |
Candidate Recommendation |
|
CSS Level 2 (Revision 1)The definition of '<uri>' in that specification. |
Recommendation |
|
CSS Level 1The definition of '<url>' in that specification. |
Recommendation |
Initial definition |
浏览器兼容性
Feature |
Chrome |
Firefox (Gecko) |
Internet Explorer |
Opera |
Safari (WebKit) |
---|---|---|---|---|---|
Basic support |
1.0 |
1.0 (1.7 or earlier) |
(Yes) |
(Yes) |
(Yes) |
Feature |
Android |
Firefox Mobile (Gecko) |
IE Mobile |
Opera Mobile |
Safari Mobile |
---|---|---|---|---|---|
Basic support |
1.0 |
1.0 (1) |
(Yes) |
(Yes) |
(Yes) |
图像值 | Image Values相关
层叠样式表( Cascading Style Sheets )是一种用来表现 HTML 或 XML 等文件样式的计算机语言。CSS 不仅可以静态地修饰网页,还可以配合各种脚本语言动态地对网页各元素进行格式化。