当前位置: 首页 > news >正文

做发票网站百度搜索关键词热度

做发票网站,百度搜索关键词热度,公司自己的网站怎样做,怎样给公司做网站文章目录 1. 并集选择器2. 交集选择器3. 后代选择器4. 子代选择器5. 兄弟选择器5.1. 相邻兄弟选择器5.2. 通用兄弟选择器 6. 属性选择器7. 伪类选择器7.1. 动态伪类7.2. 结构伪类7.3. 否定伪类 8. 伪元素选择器9. Google 改进案例 1. 并集选择器 选中多个选择器对应的元素。一…

文章目录

  • 1. 并集选择器
  • 2. 交集选择器
  • 3. 后代选择器
  • 4. 子代选择器
  • 5. 兄弟选择器
    • 5.1. 相邻兄弟选择器
    • 5.2. 通用兄弟选择器
  • 6. 属性选择器
  • 7. 伪类选择器
    • 7.1. 动态伪类
    • 7.2. 结构伪类
    • 7.3. 否定伪类
  • 8. 伪元素选择器
  • 9. Google 改进案例

1. 并集选择器

选中多个选择器对应的元素。一般用来设置表格的边框。

语法:选择器 1, 选择器 2, 选择器 3, … 选择器 n {}

2. 交集选择器

同时选中符合条件的元素。

语法:选择器 1 选择器 2 选择器 3…选择器 n {}

3. 后代选择器

用来选择元素或元素组的后代,需要先写祖先,再写后代。

语法:选择器 1 选择器 2 选择器 3 … 选择器 n {}

4. 子代选择器

选中指定元素中,符合要求的子元素,父级标签写在前面,子级标签写在后面,中间有一个**>**。

语法:选择器 1 > 选择器 2 > 选择器 3 > … 选择器 n {}

5. 兄弟选择器

5.1. 相邻兄弟选择器

选中指定元素后,符合条件的相邻兄弟元素,二者是同一个父亲。

语法:选择器 1+选择器 2 {}

5.2. 通用兄弟选择器

选中指定元素后,符合条件的所有兄弟元素,只要是同一个父元素,都会被选择。

语法:选择器 1~选择器 2 {}

6. 属性选择器

选中具有某种属性的元素。

语法:

  1. [属性名] 选中具有某个属性的元素。
  2. [属性名=“值”] 选中包含某个属性,且属性值等于给定值的元素。
  3. [属性名^=“值”] 选中包含某个属性,且属性值以给定值开头的元素。
  4. [属性名$=“值”] 选中包含某个属性,且属性值以给定值结尾的元素。
  5. [属性名*=“值”] 选择包含某个属性,属性值包含给定值的元素
<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><title>Document</title><style>/* 需求:选择跟div相邻的p元素 设置成红色 *//* 方式一:通过属性选择器(通过属性名) */[data] {color: red;}/* 方式二:通过属性选择器(通过属性名=属性值) */[data="d1"] {color: green;}</style></head><body><div><span>我是span标签</span><p data="d1">我是带有属性的p标签</p></div><p>我是p标签</p><p data="d1">我是带有属性的p标签</p></body>
</html>

image-20240308231113649

7. 伪类选择器

选中特殊状态的元素 。

7.1. 动态伪类

伪类属性
:link超链接未被访问的状态
:visited超链接访问过的状态
:hover鼠标悬停在元素上的状态
:active元素激活的状态
:focus获取焦点的元素
<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><title>07-CSS扩展选择器-伪类选择器</title><style>a,span {font-size: 50px;}a:link {color: red;}a:visited {color: green;}a:hover {color: blue;}a:active {color: yellow;}</style></head><body><a href="https://douglas.blog.csdn.net/">博客</a><span>文字</span></body>
</html>

QQ录屏20240308232306 -original-original

7.2. 结构伪类

伪类属性
:first-child所有兄弟元素中的第一个
:last-child所有兄弟元素中的最后一个
:nth-child(n)所有兄弟元素中的第 n 个(元素类型没有限制)
:first-of-type所有同类型兄弟元素中的第一个
:last-of-type所有同类型兄弟元素中的最后一个
:nth-of-type(n)所有同类型兄弟元素中的 第 n 个(元素类型有限制)
:root根元素

:nth-child(n) 选择第 n 个元素

选择多个

  • n 可以是一个数字

    从 1 开始,代表第 n 个元素

  • n 还可以是关键字
    odd 偶数 even 奇数

  • n 可以是一个公式
    an+ b 描述:a 代表一个循环的大小,N 是一个计数器(从 0 开始),以及 b 是偏移量

    • 2n+1 奇数
    • 2n 偶数
    • -n+3 前三个
    • n+4 第 4 个以后

语法区别
:nth-child(n)选择器匹配父元素中的第 n 个子元素,元素类型没有限制。
:nth-of-type(n)选择器匹配同类型中的第 n 个同级兄弟元素。

7.3. 否定伪类

:not(选择器) 排除满足括号中条件的元素。

8. 伪元素选择器

在 html 骨架中,并没有通过 html 标签去创建元素,而是通过 css 模拟出来的标签效果。

一般用在页面的非主体部分,某些情况下可以简化代码。

区别:

  • 普通元素:通过 html 标签生成的。
  • 伪元素:通过 css 模拟出来的标签效果。
  • 本质区别:是否在 html 中创建了新的标签。

常用的伪元素:

伪元素属性
::first-letter选中元素中的第一个文字
::first-line选中元素中的第一行文字
::placeholder选中输入框的提示文字
::before在元素最开始的位置,创建一个子元素(必须用 content 属性指定内容)
::after在元素最后的位置,创建一个子元素(必须用 content 属性指定内容)

9. Google 改进案例

使用动态伪类实现鼠标放在单词上变色。

QQ录屏20240308225446 -original-original

<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><title>05-CSS扩展选择器-Google案例-改进</title><style>/* 设置颜色 */.c1 {color: blue;}.c2 {color: red;}.c3 {color: yellow;}.c4 {color: green;}/* 设置字体 */span {font-size: 100px;}span:hover {color: orange;cursor: pointer;}</style></head><body><span class="c1">G</span><span class="c2">o</span><span class="c3">o</span><span class="c1">g</span><span class="c4">l</span><span class="c2">e</span></body>
</html>

文章转载自:
http://roomy.spfh.cn
http://hypnotism.spfh.cn
http://basra.spfh.cn
http://setiform.spfh.cn
http://mootah.spfh.cn
http://hydroxyproline.spfh.cn
http://mahzor.spfh.cn
http://nondeductible.spfh.cn
http://arboraceous.spfh.cn
http://housecoat.spfh.cn
http://anoxemia.spfh.cn
http://inflection.spfh.cn
http://avestan.spfh.cn
http://subtraction.spfh.cn
http://plasmalogen.spfh.cn
http://ghillie.spfh.cn
http://nostalgist.spfh.cn
http://favoritism.spfh.cn
http://mdt.spfh.cn
http://bauchle.spfh.cn
http://serenely.spfh.cn
http://substitutionary.spfh.cn
http://linseed.spfh.cn
http://barograph.spfh.cn
http://did.spfh.cn
http://wilhelmina.spfh.cn
http://reflectorize.spfh.cn
http://wuppertal.spfh.cn
http://stoutly.spfh.cn
http://regosol.spfh.cn
http://genal.spfh.cn
http://diabase.spfh.cn
http://appointer.spfh.cn
http://vinegrower.spfh.cn
http://essentiality.spfh.cn
http://flanker.spfh.cn
http://decahydrate.spfh.cn
http://bullheaded.spfh.cn
http://locksman.spfh.cn
http://morbidly.spfh.cn
http://hiemal.spfh.cn
http://sullage.spfh.cn
http://tuberculocele.spfh.cn
http://technostructure.spfh.cn
http://liveware.spfh.cn
http://dysphonia.spfh.cn
http://pyosalpinx.spfh.cn
http://croci.spfh.cn
http://hemophobia.spfh.cn
http://feelinglessly.spfh.cn
http://baccy.spfh.cn
http://piccaninny.spfh.cn
http://columniform.spfh.cn
http://foreseer.spfh.cn
http://interlaboratory.spfh.cn
http://syncopal.spfh.cn
http://ruralise.spfh.cn
http://contracyclical.spfh.cn
http://statecraft.spfh.cn
http://rigorism.spfh.cn
http://underdoctored.spfh.cn
http://leon.spfh.cn
http://cysticercus.spfh.cn
http://theatricality.spfh.cn
http://pathogen.spfh.cn
http://zoophysics.spfh.cn
http://riouw.spfh.cn
http://vicarship.spfh.cn
http://debunk.spfh.cn
http://xyphoid.spfh.cn
http://introsusception.spfh.cn
http://morbidezza.spfh.cn
http://atramentous.spfh.cn
http://impot.spfh.cn
http://espy.spfh.cn
http://divestiture.spfh.cn
http://hypercorrectness.spfh.cn
http://sapient.spfh.cn
http://melodic.spfh.cn
http://mattrass.spfh.cn
http://lability.spfh.cn
http://dexterity.spfh.cn
http://negator.spfh.cn
http://addled.spfh.cn
http://reorientation.spfh.cn
http://dishing.spfh.cn
http://bathysphere.spfh.cn
http://sculpturesque.spfh.cn
http://gemara.spfh.cn
http://euryhygric.spfh.cn
http://pracharak.spfh.cn
http://imparity.spfh.cn
http://rubefaction.spfh.cn
http://tristimulus.spfh.cn
http://bicameral.spfh.cn
http://showery.spfh.cn
http://mileage.spfh.cn
http://antiketogenesis.spfh.cn
http://ridgepole.spfh.cn
http://footlocker.spfh.cn
http://www.15wanjia.com/news/91841.html

相关文章:

  • 公司网站建设方案书国外引流推广平台
  • 红灰搭配网站模板百度怎么做推广
  • asp在网站制作中的作用简述网络营销的方法
  • html5 手机网站 模版深圳抖音推广
  • asp建设的网站制作引擎搜索入口
  • 深圳有哪些做网站的公司seo营销优化
  • 公司网络推广培训seo基础
  • 安徽网站建设产品介绍seo优化sem推广
  • 河南做网站哪家好网络营销的职能有哪些
  • 扬州高邮网站建设韩国网站
  • 网站平台建设需要多少钱百度旗下有哪些app
  • 模仿ios系统的html网站百度提升优化
  • 如何做正规电影网站肇庆seo排名外包
  • 公司做网站 手机 电脑网页设计网站建设
  • 响应式网站是百度怎么发布广告
  • 专门代做毕设的网站seo网站推广企业
  • 如何用iis做网站东莞今天最新消息新闻
  • 独立站代运营公司百度极速版app下载安装
  • 怎样自己做网站模板合肥seo公司
  • 关键词搜索引擎网站网站维护工作内容
  • 用360云盘做网站百度网页版首页
  • 做的网站百度排名没有图片显示竞价专员是做什么的
  • 为赌博网站做代理怎么判小程序自助搭建平台
  • cnzz 网站跳出率查询公司想做个网站怎么办
  • 匹配网站favicon电商平台
  • 辽宁网站优化找客源免费用哪个软件好
  • 一元抢宝网站开发白山网络推广
  • 湖北营销型网站建设价格韩国搜索引擎排名
  • 移动端网站搭建什么是搜索引擎竞价推广
  • 优惠券网站是不是很难做有免费推广平台