首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

图像 | CSS Images

CSS图像是CSS的一个模块,它定义了可以使用何种类型的图像<image>类型,包含URL、渐变和其他类型的图像%29,如何调整它们的大小,以及它们和其他替换的内容如何与不同的布局模型交互。

参照系

特性

  • image-orientation
  • image-rendering
  • object-fit
  • object-position

功能

数据类型

  • <image>

指南

使用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)

扫码关注腾讯云开发者

领取腾讯云代金券