欧美高清视频一区,日本高清视频在线免费观看,综合图区亚洲网友自拍,国产呦萝资源网站

我們只做一件事,只為您滿意--山東微道商網絡技術有限公司
當前位置:主頁 -> 新聞中心 > 公司新聞

濟南網站建設公司前端代碼的標準寫法詳解

來源:http://www.qanho.com/ 發布時間:2021-05-10

1.盡量滿足W3C認證;(系統可自行檢測)
1. Try to meet W3C certification( The system can detect by itself)
2.CSS使用外部調用
2. CSS uses external call
3.盡量減少http請求次數:合并JS/CSS、
3. Minimize the number of HTTP requests: merge JS / CSS
4.取消重定向、使用css sprite、緩存靜態資源;
4. Cancel redirection, use CSS sprite and cache static resources;
5.壓縮頁面元素(CSS、JS、圖片等),使用Gzip壓縮網頁,以加快下載速度;
5. Compress the page elements (CSS, JS, pictures, etc.) and use gzip to compress the web page to speed up the download speed;
6.減少網頁代碼量,清除網頁中一些冗余的代碼,可以合并代碼,必要時可以去掉空格注釋等,減小頁面體積
濟南網站建設公司
6. Reduce the amount of web page code, clear some redundant code in the web page, merge the code, and remove the space comments when necessary, so as to reduce the size of the page
7.CSS放內,JS放頁面后(異步除外);除了影響加載的效果文件,合并JS,減少請求
7. CSS is placed inside, JS is placed at the end of the page (except asynchronous); In addition to affect the effect of loading files, merge JS, reduce requests
8.盡量少用第三方庫,或使用穩定的三方庫。
8. Minimize the use of third-party libraries, or use stable third-party libraries.
9.確保所有的標簽都使用小寫字母
9. Make sure all labels are in lowercase
10.確保所有的屬性值都放在引號里
10. Make sure all attribute values are in quotation marks
11.所有成對標簽都保證合理的順序、不成對的標簽都用/>結束, ”/”和”>”之間不要有空格
11. All paired tags should be in a reasonable order, unpaired tags should end with / > and there should be no space between / "and" > "
12.為頁面添加正確的DOCTYPE
12. Add the correct DOCTYPE to the page
13.所有屬性值加引號
13. All attribute values are quoted
14.閉合所有的標簽
14. Close all labels
15.盡量減少嵌套,嵌套時標簽必須一一對應
15. Try to reduce nesting, labels must be one-to-one corresponding when nesting
16.清除空格、換行。盡量不用的大段注釋
16. Clear the space and wrap. Try not to use large comments
購買產品重要的是質量,選擇商家選擇是誠信,濟南網站建設公司真誠的為廣大客戶提供優良的服務,歡迎大家在網站:http://www.qanho.com下方留言咨詢.
Jinan website construction company sincerely provides excellent services for our customers. Welcome to our website: http://www.qanho.com Below message consultation
相關文章
相關推薦
?