CSS 維護性


Posted by mijouhsieh on 2023-04-25

CSS 程式碼的品質- Don't Repeat Yourself
CSS 重構 => 在不同元素上,若有相同的CSS設定,把CSS設定另外拉出來取名 class name,在HTML檔中,元素加上 共用class name
reference:
On Style Maintenance - An applicable example in CSS


#CSS 重構 #共用class name







Related Posts

Server  同步 gitLab

Server 同步 gitLab

嵌套router <nuxt-child> (使用 nuxt)

嵌套router <nuxt-child> (使用 nuxt)

[Windows] telnet 確定 TCP 連接埠為開啟或關閉 #ping # telnet

[Windows] telnet 確定 TCP 連接埠為開啟或關閉 #ping # telnet


Comments