標准DIV+CSS命名規則
頁頭:header
登錄條:loginBar
標志:logo
側欄:sideBar
廣告:banner
導航:nav
子導航:subNav
菜單:menu
子菜單:subMenu
搜尋:search
滾動:scroll
頁面主體:main
內容:content
標簽頁:tab
文章列表:list
提示訊息:msg
小技巧:tips
欄目標題:title
加入:joinus
指南:guild
服務:service
熱點:hot
資訊:news
下載:download
注冊:regsiter
狀態:status
按鈕:btn
投票:vote
合作夥伴:partner
友情連結:friendLink
頁腳:footer
版權:copyRight
1.CSS ID 的命名
外 套: wrap
主導航: mainNav
子導航: subnav
頁 腳: footer
整個頁面: content
頁 眉: header
頁 腳: footer
商 標: label
標 題: title
主導航: mainNav(globalNav)
頂導航: topnav
邊導航: sidebar
左導航: leftsideBar
右導航: rightsideBar
旗 志: logo
標 語: banner
菜單內容1: menu1Content
菜單容量: menuContainer
子菜單: submenu
邊導航圖標:sidebarIcon
注釋: note
面包屑: breadCrumb(即頁面所處位置導航提示)
容器: container
內容: content
搜尋: search
登陸: login
功能區: shop(如購物車,收銀台)
當前的 current
2.另外在編輯樣式表時可用的注釋可這樣寫:
<-- Footer -->
內容區
<-- End Footer -->
3.樣式文件命名
主要的 master.css
布局,版面 layout.css
專欄 columns.css
文字 font.css
列印樣式 print.css
主題 themes.css
資料來源:
本篇文章來源于 [維奇素材網] 轉載請以連結形式注明出處 網址:
http://big5.veeqi.com/learn/xhtml/20080111/1172.html
2012年1月12日 星期四
2011年11月18日 星期五
2011年11月17日 星期四
2011年11月14日 星期一
web小工具-線上美化程式碼工具
如何在你的部落格上紀錄程式碼又可以讓他美美的呢?
這個http://pastie.org/pastes/new 可以將你的程式碼美化並提供多種程式對應,如c#、sql、script等等.......
以下是實測畫面
這個http://pastie.org/pastes/new 可以將你的程式碼美化並提供多種程式對應,如c#、sql、script等等.......
以下是實測畫面
mvc筆記-asp.net MVC 驗證相關
1 2 3 4 5 6 7 8 9 10 | model下的驗證 [Required(ErrorMessage ="*")] [Range(100, 50000, ErrorMessage = "金額範圍: 300 - 50000")] [RegularExpression("[A-Za-z0-9]{3,8}", ErrorMessage = "限定為3-8個英文或數字")] [RegularExpression(@"[\D]{2,6}$", ErrorMessage = "限定為2-6個中文字!")] [RegularExpression("[0-9]{0,4}-[0-9]{0,2}-[0-9]{0,2}", ErrorMessage = "日期格式不正確")] //Compare 命名空間需加入 using System.Web.Mvc; [Compare("loginPW", ErrorMessage = "兩次輸入密碼不一致")] [Required(ErrorMessage = "*輸入密碼不一致"), Compare("loginPW")][StringLength(15, MinimumLength = 6, ErrorMessage = "長度限制為6-15個字元")]//驗證時間 例: 8:30am |
訂閱:
文章 (Atom)
Visual Studio JS intellisense 失效解決方式
試了好久,發現到工具>選項>IntelliCode js項目設定啟用,重新開啟VS就正常了! 後來發現是TypeScript3.2版有問題停用,使用4.3版的TypeScript即可
-
開啟記事本將以下程式碼貼入存成.bat @ECHO OFF set x=%date:~0,4%%date:~5,2%%date:~8,2% CD C:\Windows\System32\winevt\Logs COPY Application.evtx D:\bak\...
-
使用truncate table 時會出現 無法截斷資料表 'xxx',因為該資料表正由 FOREIGN KEY 條件約束參考解決方式 先刪除再重建自動編號即可。 DELETE table; DBCC CHECKIDENT('table...
