標題:CSS Selector 在CLASS中包含某個字便改變設定 出處:A.PAO designSTUDIO BLOG 時間:Mon, 28 May 2018 14:54:10 +0000 作者:apao 地址:https://blog.apao.idv.tw/post/1264/ 內容: 說明:在CSS 的Class名稱中,只要包含「test」便改變屬性設定 點擊在新視窗中瀏覽此圖片 https://blog.apao.idv.tw/attachment.php?fid=2953 中文範例:點這裡 CSS部分: div[class*="test"]{ background:rgba(255,0,0,1.00); color: #ffffff; } HTML部分:
第一個 DIV 元素
第二個 DIV 元素
第三個 DIV 元素

第一個 test P 段落的本文

英文原文範例:點這裡 Generated by Bo-blog 2.1.1 Release