CSS选择器

提交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}

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 1. class 和 id 的使用场景: id:id选择器,使用#name定义(name为id名,可任意取名),使...
    石林涛阅读 2,994评论 0 1
  • 一、CSS选择器常见的有几种? 基本选择器 通配选择器~选择文档中所有的html元素,用一个*表示 元素选择器~选...
    dengpan阅读 4,535评论 0 3
  • 1.元素选择器 p{ color: orange } 2.选择器分组与声明分组 h1,h2,h3,h4,h5,h6...
    星月西阅读 2,688评论 0 0
  • class和id的使用场景 class指定标签的类名,属性值可出现在多个标签中。id指定标签的唯一标识,为某一元素...
    饥人谷_saybye阅读 3,297评论 0 0
  • 你从幽谷来 香近,香亦远 如剑的叶刺破世俗 闪耀孤傲的雷光 净化灵魂上的铜臭 一个小小的塑料盆 一点贫瘠的污土 你...
    鸿蒙一叶阅读 1,760评论 3 9

友情链接更多精彩内容