CSS 生成内容

CSS Generated Content 是CSS其中一个模块,定义了如何给一个元素添加内容

参考

属性

规范

规范 状态 注释
CSS Generated Content Module Level 3 Working Draft  
CSS Level 2 (Revision 1) Recommendation Initial definition

浏览器兼容性

content 属性

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
contentChrome Full support 1Edge Full support 12Firefox Full support 1IE Full support 8Opera Full support 4Safari Full support 1WebView Android Full support 1Chrome Android Full support 18Firefox Android Full support 4Opera Android Full support 10.1Safari iOS Full support 1Samsung Internet Android Full support Yes
Element replacementChrome Full support 28Edge No support NoFirefox Full support 63IE No support NoOpera Full support 15Safari Full support 9WebView Android Full support ≤37Chrome Android Full support 28Firefox Android Full support 63Opera Android Full support 14Safari iOS Full support 9Samsung Internet Android Full support 1.5
url()Chrome Full support 1Edge Full support 12Firefox Full support 1IE Full support 8Opera Full support 7Safari Full support 1WebView Android Full support 37Chrome Android Full support 18Firefox Android Full support 4Opera Android ? Safari iOS Full support 1Samsung Internet Android ?

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown

quotes 属性

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
quotesChrome Full support 11Edge Full support 12Firefox Full support 1.5IE Full support 8Opera Full support 4Safari Full support 9WebView Android Full support 37Chrome Android Full support 18Firefox Android Full support 4Opera Android ? Safari iOS Full support 9Samsung Internet Android ?
auto keywordChrome No support No
Notes
No support No
Notes
Notes This value is not supported, but the default browser behavior is to choose appropriate quotes for the user's language setting
Edge No support No
Notes
No support No
Notes
Notes This value is not supported, but the default browser behavior is to choose appropriate quotes for the user's language setting
Firefox Full support 70IE No support No
Notes
No support No
Notes
Notes This value is not supported, but the default browser behavior is to choose appropriate quotes for the user's language setting
Opera No support No
Notes
No support No
Notes
Notes This value is not supported, but the default browser behavior is to choose appropriate quotes for the user's language setting
Safari No support No
Notes
No support No
Notes
Notes This value is not supported, but the default browser behavior is to choose appropriate quotes for the user's language setting
WebView Android No support No
Notes
No support No
Notes
Notes This value is not supported, but the default browser behavior is to choose appropriate quotes for the user's language setting
Chrome Android No support No
Notes
No support No
Notes
Notes This value is not supported, but the default browser behavior is to choose appropriate quotes for the user's language setting
Firefox Android No support NoOpera Android No support No
Notes
No support No
Notes
Notes This value is not supported, but the default browser behavior is to choose appropriate quotes for the user's language setting
Safari iOS No support No
Notes
No support No
Notes
Notes This value is not supported, but the default browser behavior is to choose appropriate quotes for the user's language setting
Samsung Internet Android No support No
Notes
No support No
Notes
Notes This value is not supported, but the default browser behavior is to choose appropriate quotes for the user's language setting

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
See implementation notes.
See implementation notes.