JavaShuo
欄目
標籤
CSS:好玩的‘僞類’系列之——(:nth-of-type()、:first-of-type和:last-of-type)
時間 2019-12-07
標籤
css
好玩
系列
nth
type
欄目
CSS
简体版
原文
原文鏈接
:nth-of-type() 定義:在擁有同一父元素的狀況下(前提),匹配一組相同的兄弟元素,修改其樣式css 觸發條件:( )中爲數字值,從1開始(注意,不是下標,木有0),也能夠是2n或者2n+1。2n表明匹配全部相同的偶數元素,2n+1表明匹配全部相同的奇數元素;也可使用關鍵字odd(表明奇數)和even(表明偶數),修改指定的元素樣式html 兼容:IE8及8如下不支持 Opera9.5如
>>阅读原文<<
相關文章
1.
CSS:好玩的‘僞類’系列之——(:focus)
2.
CSS:好玩的‘僞類’系列之——(:empty)
3.
CSS:好玩的‘僞類’系列之——(:optional)
4.
CSS:好玩的‘僞類’系列之——(:checked)
5.
CSS:好玩的‘僞類’系列之——(:disabled)
6.
CSS:好玩的‘僞類’系列之——(:enabled)
7.
CSS:好玩的‘僞類’系列之——(:target)
8.
CSS:好玩的‘僞類’系列之——(:required)
9.
CSS:好玩的‘僞類’系列之——(:valid和:invalid)
10.
CSS:好玩的‘僞類’系列之——(:nth‐child()、:first‐child和:last‐child)
更多相關文章...
•
網絡體系的構成和類型
-
TCP/IP教程
•
jQuery Mobile CSS 類
-
jQuery Mobile 教程
•
互聯網組織的未來:剖析GitHub員工的任性之源
•
Docker容器實戰(七) - 容器眼光下的文件系統
相關標籤/搜索
好玩
CSS系列
和好
好玩的編程
之類
玩轉SQLite系列
之和
好嗎好的
好的
CSS
XLink 和 XPointer 教程
MySQL教程
NoSQL教程
文件系統
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
「插件」Runner更新Pro版,幫助設計師遠離996
2.
錯誤 707 Could not load file or assembly ‘Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKe
3.
Jenkins 2018 報告速覽,Kubernetes使用率躍升235%!
4.
TVI-Android技術篇之註解Annotation
5.
android studio啓動項目
6.
Android的ADIL
7.
Android卡頓的檢測及優化方法彙總(線下+線上)
8.
登錄註冊的業務邏輯流程梳理
9.
NDK(1)創建自己的C/C++文件
10.
小菜的系統框架界面設計-你的評估是我的決策
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
1.
CSS:好玩的‘僞類’系列之——(:focus)
2.
CSS:好玩的‘僞類’系列之——(:empty)
3.
CSS:好玩的‘僞類’系列之——(:optional)
4.
CSS:好玩的‘僞類’系列之——(:checked)
5.
CSS:好玩的‘僞類’系列之——(:disabled)
6.
CSS:好玩的‘僞類’系列之——(:enabled)
7.
CSS:好玩的‘僞類’系列之——(:target)
8.
CSS:好玩的‘僞類’系列之——(:required)
9.
CSS:好玩的‘僞類’系列之——(:valid和:invalid)
10.
CSS:好玩的‘僞類’系列之——(:nth‐child()、:first‐child和:last‐child)
>>更多相關文章<<