HTML
CSS
JavaScript
Vue
React
Python
PHP
Java
.Net
Java9手册
PHP手册
CSS3手册
jQuery手册
CSS 参考手册
CSS 选择器
CSS 听觉参考手册
CSS Web安全字体
CSS 单位
CSS 颜色
CSS 合法颜色值
CSS 颜色名称
CSS 颜色十六进制值
CSS 浏览器支持
appearance
backface-visibility
background
background-attachment
background-color
background-image
background-position
background-repeat
background-size
border
border-bottom
border-bottom-color
border-bottom-style
border-bottom-width
border-collapse
border-color
border-left
border-left-color
border-left-style
border-left-width
border-right
border-right-color
border-right-style
border-right-width
border-spacing
border-style
border-top
border-top-color
border-top-style
border-top-width
border-width
bottom
box-align
box-direction
box-flex
box-flex-group
box-lines
box-ordinal-group
box-orient
box-pack
box-sizing
caption-side
clear
clip
color
column-count
column-fill
column-gap
column-rule
column-rule-color
column-rule-style
column-rule-width
column-span
column-width
columns
content
counter-increment
counter-reset
cursor
direction
display
empty-cells
float
font-family
font-size
font-style
font-variant
font-weight
grid-columns
grid-rows
hanging-punctuation
height
icon
left
letter-spacing
line-height
list-style
list-style-image
list-style-position
list-style-type
margin
margin-bottom
margin-left
margin-right
margin-top
max-height
max-width
min-height
min-width
nav-down
nav-index
nav-left
nav-right
nav-up
opacity
outline
outline-color
outline-offset
outline-style
outline-width
overflow
overflow-x
overflow-y
padding
padding-bottom
padding-left
padding-right
padding-top
page-break-after
page-break-before
page-break-inside
perspective
perspective-origin
position
punctuation-trim
quotes
resize
right
rotation
table-layout
target
target-name
target-new
target-position
text-align
text-decoration
text-indent
text-justify
text-outline
text-overflow
text-shadow
text-transform
text-wrap
top
transform
transform-origin
transform-style
transition
transition-property
transition-timing-function
vertical-align
visibility
width
word-spacing
word-wrap
z-index
writing-mode
CSS教程
CSS3 教程
Bootstrap3 教程
Bootstrap4 教程
Font Awesome 图标
Foundation5 教程
CSS
#
id
Selector
完整CSS选择器参考手册
实例
为 id="firstname" 元素添加指定样式:
#firstname
{
background-color:yellow;
}
尝试一下 »
定义和用法
#
id
选择器指定具有ID的元素的样式。
浏览器支持
所有主流浏览器都支持 #
id
选择器。
完整CSS选择器参考手册
←
.
class
→
element
element