©
This document uses PHP Chinese website manual Release
IE | Firefox | Chrome | Safari | Opera | iOS Safari | Android Browser | Android Chrome |
---|---|---|---|---|---|---|---|
6.0+ | 2.0+ | 4.0+ | 3.1+ | 3.5+ | 3.2+ | 2.1+ | 18.0+ |
color的部分关键字可能不被某些浏览器支持;
<!DOCTYPE html> <html lang="zh-cmn-Hans"> <head> <meta charset="utf-8" /> <title>Color Name_CSS参考手册_web前端开发参考手册系列</title> <meta name="author" content="Joy Du(飘零雾雨), dooyoe@gmail.com, www.doyoe.com" /> <style> .foreground { color: highlight; } .background { background-color: gray; } </style> </head> <body> <ul class="test"> <li class="foreground">红色的文字</li> <li class="background">灰色的背景</li> </ul> </body> </html>
点击 "运行实例" 按钮查看在线实例