一站式海外推广平台,公司大气聚财的名字,合肥装饰公司做的好的网站,网站页面一般做多大CSS复合选择器 接上边的父选择器 子选择器只会选择最近的后代#xff0c;进行变色 元素1和元素2中间用大于号隔开 元素1是父级#xff0c;元素2是子级#xff0c;选子级 olli{ color: red#xff1b;} 并集选择器 不同类型的标签如#xff1a;div p ul span 进行变色 元素1和元素2中间用大于号隔开 元素1是父级元素2是子级选子级 olli{ color: red} 并集选择器 不同类型的标签如div p ul span head
stylestylediv,p,.pig li {color: pink;}/style
style
/head
bodydiv胸大/divp雪儿/pul classpigli十大科技/li/ul
/body stylea:link {color: red;text-decoration: none;
}
a:hover {color: skyblue;}/style a:link 未访问的连接alink 把没有点击过的访问过的连接选出来 a:visited 访问过后的连接会修改颜色 a:hover 鼠标移动到该连接就变色 a:active 选择的是外面鼠标正在按下还没有弹起鼠标的那个链接 为了保证生效需要按照link visited hover active的顺序 开发就只要没有下划线和hover就可以了 focus伪类选择器用于选取获得焦点的表单元素.那个获得光标 style
input:focus{bockground-color: yellow;
}
/style
bodyinput typetextinput typetextinput typetext
/body 背景没有特定的约定顺序 习惯上规定background: 背景颜色 背景图片地址 背景平铺 背景图像滚动 背景图片位置如black url(图片地址) no-repeat fixed center top;