“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

aqua.gif

black

black.gif

blue

blue.gif

fuchsia

fuchsia.gif

gray

gray.gif

green

green.gif

lime

lime.gif

maroon

maroon.gif

navy

navy.gif

olive

olive.gif

orange

orange.gif

purple

purple.gif

red

red.gif

silver

silver.gif

teal

teal.gif

white

white.gif

yellow

yellow.gif

以下是用不同的方法实现红色:

em {color: red}
em {color: rgb(255,0,0)}
em {color: #f00}
em {color: #ff0000}
em {color: rgb(100%, 0%, 0%)}

计数

频率

标识符

整数

长度

数字

百分比

字符串

时间

网址

原帖地址:http://xhtml.com/en/css/reference/property-data-types/