用CSS診斷HTML代碼

來源:互聯網
上載者:User

 

     用firebug將下面這行貼進你要檢查的頁面中。如果頁面的html代碼使用了不被推薦的標籤或屬性將被高亮標出,等級從紅,橙紅到黃。
<link rel="stylesheet" type="text/css" href="http://www.nealgrosskopf.com/tech/resources/3/css-diagnostics.css">
這個簡單好用的辦法出自這裡:http://www.nealgrosskopf.com/tech/thread.asp?pid=3
這裡列出各種將被標記的情況:http://www.nealgrosskopf.com/tech/resources/3/test_suite.html
在做代碼review時可以用上很直觀不是嗎。

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.