Contenu connexe
Similaire à Web coding principle (20)
Plus de ZongYing Lyu (16)
Web coding principle
- 10. CSS
RWD
• font-size: em
• width, height: grid system
themes
• default
• css
• main.css
• img
https://github.com/doggy8088/CSS-
Guidelines/blob/master/README.md
- 19. COMMIT SOP
1. 在本地端測試自己新的功能是”正確”完成的
2. Git Pull 取得最新的狀態
3. Commit Code 請一隻一隻程式確定
• 禁用 commit –a
4. 一隻一隻程式去確定這次改變的 Diff
5. 寫 log
6. Merger new branch to Develop
7. 到 Staging 去驗證本次寫的功能
- 21. STRING TABLE
• 請一開始就使用 String table 寫法
• 英文、阿拉伯數字和中文中間空一格(半形)
• 標點符號請用全形
• PDF、MP3 統一使用大寫
• 多國語言請僅量不要使用 string 組合
• 有變數的提示訊息使用格式化的 string 處理
• sprintf : http://www.php.net/manual/en/function.sprintf.php