Blog

CSS 網頁設計,CSS Selectors,id 或 class 中間名選擇,多重選擇法

網頁設計教學 Jun 16, 2017 點閱 3836 討論 0
CSS 網頁設計,CSS Selectors,id 或 class 中間名選擇,多重選擇法

CSS 網頁設計,CSS Selectors,id 或 class 中間名選擇,多重選擇法
多個樣版要用同一個 style ,但沒有相同 class name,且不同的如

 

 

 

 

 

 

 

 

 

可使用多重選擇法

div[id^="product-"][id$="-list"]

id^="product-" id 開頭為 product-
id$="product-" id 結尾為 -list

class 也可以使用此方法

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(網頁設計)(網頁設計教學)) AND application = 'blog' ORDER BY FIELD(tags' at line 1 in this syntax SELECT tags_id,name FROM tags WHERE tags_id IN ((css)(網頁設計)(網頁設計教學)) AND application = 'blog' ORDER BY FIELD(tags_id, (css)(網頁設計)(網頁設計教學)) ASC LIMIT 30
網頁設計教學 Jun 16, 2017 點閱 3836 討論 0