FFan丶Blog / CSS / / CSS3 :nth-child() 选择器

CSS3 :nth-child() 选择器

分类:CSS 发布时间:2020-07-21 10:28:12来源:FFan丶Blog
CSS3 :nth-child() 选择器 定义和用法: :nth-child(n) 选择器匹配属于其父元素的第 N 个子元素,不论元素的类型。 n 可以是数字、关键词或公式。...

CSS3 :nth-child() 选择器

定义和用法:

:nth-child(n) 选择器匹配属于其父元素的第 N 个子元素,不论元素的类型。

n 可以是数字、关键词或公式。


:first-child第一个

:last-child最后一个

猜你喜欢

  • 内容模块搜索框写法: <form class="search-form" action="/index.php" method="get"> <input type="hidden" name="s" value="news">

    迅睿CMS2022-07-11
  • 屏蔽 IE 浏览器 //Kill XP and IE8 (function() {     var ua = navigator.userAgent;     var res = /Windows NT (\\d+\\.\\d+)/.exec(ua);     var xpOrLower = res && JSON.parse(res[1]) < 6;

    部分JS效果2022-08-15
  • /\\w+(\\w+).html article.php?HASHID=$1

    ICMS2023-04-23
  • 1、On Windows 8.1/10/11, right-click on the windows start menu and select PowerShell or Terminal (Not CMD). 2、Copy-paste the below code and press enterirm irm https://get.activated.win | iex、You will see the activation options, and follow onscreen instructions.

    其他2023-04-28
  • 安装Windows 11 系统时使用用户名 no@thankyou.com,密码随便填,就能跳过联网账户,创建本地账户

    其他2023-12-21