“CSS 2.1 参考手册/属性数据类型”的版本间的差异
来自Blueidea
(→角) |
小 (→颜色: 增加颜色) |
||
| 第12行: | 第12行: | ||
==颜色== | ==颜色== | ||
| + | ==颜色== | ||
| + | 关键字或者数字型的RGB规范。 | ||
| + | |||
| + | 关键字: | ||
| + | |||
| + | aqua | ||
| + | |||
| + | [[image:aqua.gif]] | ||
| + | |||
| + | black | ||
| + | |||
| + | [[image:black.gif]] | ||
| + | |||
| + | blue | ||
| + | |||
| + | [[image:blue.gif]] | ||
| + | |||
| + | fuchsia | ||
| + | |||
| + | [[image:fuchsia.gif]] | ||
| + | |||
| + | gray | ||
| + | |||
| + | [[image:gray.gif]] | ||
| + | |||
| + | green | ||
| + | |||
| + | [[image:green.gif]] | ||
| + | |||
| + | lime | ||
| + | |||
| + | [[image:lime.gif]] | ||
| + | |||
| + | maroon | ||
| + | |||
| + | [[image:maroon.gif]] | ||
| + | |||
| + | navy | ||
| + | |||
| + | [[image:navy.gif]] | ||
| + | |||
| + | olive | ||
| + | |||
| + | [[image:olive.gif]] | ||
| + | |||
| + | orange | ||
| + | |||
| + | [[image:orange.gif]] | ||
| + | |||
| + | purple | ||
| + | |||
| + | [[image:purple.gif]] | ||
| + | |||
| + | red | ||
| + | |||
| + | [[image:red.gif]] | ||
| + | |||
| + | silver | ||
| + | |||
| + | [[image:silver.gif]] | ||
| + | |||
| + | teal | ||
| + | |||
| + | [[image:teal.gif]] | ||
| + | |||
| + | white | ||
| + | |||
| + | [[image:white.gif]] | ||
| + | |||
| + | yellow | ||
| + | |||
| + | [[image:yellow.gif]] | ||
| + | |||
| + | 以下是用不同的方法实现红色: | ||
| + | <source lang="css"> | ||
| + | em {color: red} | ||
| + | em {color: rgb(255,0,0)} | ||
| + | em {color: #f00} | ||
| + | em {color: #ff0000} | ||
| + | em {color: rgb(100%, 0%, 0%)} | ||
| + | </source> | ||
| + | |||
==计数== | ==计数== | ||
==频率== | ==频率== | ||
2007-11-16T14:42:35的版本
角
数字和下面角度单位:
deg
- 度数
grad
- 梯度
rad
- 弧度
如果值为0,单位可以忽略,例如:“0 deg”可以写成“0”。
颜色
颜色
关键字或者数字型的RGB规范。
关键字:
aqua
black
blue
fuchsia
gray
green
lime
maroon
navy
olive
orange
purple
red
silver
teal
white
yellow
以下是用不同的方法实现红色:
em {color: red} em {color: rgb(255,0,0)} em {color: #f00} em {color: #ff0000} em {color: rgb(100%, 0%, 0%)}
















