DIV CSS 佈局教程網

 DIV+CSS佈局教程網 >> 網頁腳本 >> CSS入門知識 >> CSS進階教程 >> CSS代碼優化的兩個原因
CSS代碼優化的兩個原因
編輯:CSS進階教程     

 為什麼進行CSS代碼優化呢?

  好,有兩個原因。它可以幫助你變得更小的CSS文件大小和更好的寫的代碼。這個方法的優化工作實際,讓你決定你想要多少壓縮。從超壓(幾乎讀和編輯被人類)視覺愉悅。我喜歡這個標准設置,因為它會給你一個小的。
  
  另一個涼爽的特征是,它能幫助你用速記編碼。我絕不是一位專家在樣式表。我並不擁有所有的速記記方法(!)。對於那些你使用Dreamweaver,就像我一樣,你會發現它喜歡用草書代碼。我的意思是相互獨立的角色的線。這能讓單調乏味的復制和粘貼它做一些小改變。很多東西可以變成一個線,如背景和邊界。
  
  所以你要優化的主要原因是,確保你的CSS文件都是干淨的。有一定的藝術形式在干淨、簡潔的代碼。我甚至沒有一個程序員,我能看到。我是一個藝術家,所以這個工具確實有助於提高速度。

 Why CSS optimize?

  Well for two reasons mainly. It helps you get smaller CSS file sizes and better written code. The way the optimizer works actually lets you decide how much compression you want. From super compressed (virtually unreadable and editable by a human being) to visually pleasing. I prefer the standard setting because it gives you a little of both.

  Another cool feature is that it helps you with shorthand coding. I am by no means an expert at CSS. I do not have all the shorthand methods memorized (yet!). For those of you using Dreamweaver, like myself, you'll find that it likes to use longhand code. By this I mean putting each seperate rule on it's own line. This can get tedious copying and pasting it make a small change. A lot of that stuff can get consolidated into one line, like backgrounds and borders.

  So your main reasons for wanting to optimize are to make sure your CSS files are clean. There is a certain art form in clean and concise code. And I'm not even a programmer and I can see that. I'm an artist, so this tool really helps speed things up.

XML學習教程| jQuery入門知識| AJAX入門| Dreamweaver教程| Fireworks入門知識| SEO技巧| SEO優化集錦|
Copyright © DIV+CSS佈局教程網 All Rights Reserved