CSS选择器

2017-11-08  本文已影响0人  何苦_python_java

提交radio

重置reset

复选框checkbox

选择状态checked="checked"

前景color:    绿色green;     背景border:     实线solid 1px #000;    

整体颜色background-color:red;  

内边距padding:   全局选择器*{}          /所有元素变色元素选择器p{}           /定义的标签变色ID选择器#a{}         /嵌入标签中id="a" 类选择器 .c{}             /嵌入标签中class="c" 背景图 background-image:url(xx.jpg)

高width:120px;          宽height:120px;      字体 font-family:"xxx",""x"";      字体粗细 font-weight:400;对齐       text-align: 左left   居中center    右right   两端对齐    justify按照          

爱和很的送序(lv -- ha)   a:link{} a:visited{} a:hoxer{ 鼠标经过显示颜色 }

a:active{}a:link{ text-decoration: none; color:#555; } 

a:visited{ text-decoration: none; color:#555; }

a:hover{ text-decoration: none; color:#f00; }

a:active{ text-decoration: none; color:#555; }

a.footer:link{ text-decoration: none; color:#fff; }

a.footer:visited{ text-decoration: none; color:#555;}

a.footer:hover{ text-decoration: none; color:#f00; }

a.footer:active{ text-decoration: none; color:#555;

通过.footer连接到要变色的a标签上class=".footer"a:link {color: #FF0000}

a:visited {color: #00FF00}

a:hover {color: #FF00FF}

a:active {color: #0000FF}

上一篇 下一篇

猜你喜欢

热点阅读