久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<legend id='w4NMM'><style id='w4NMM'><dir id='w4NMM'><q id='w4NMM'></q></dir></style></legend>
    • <bdo id='w4NMM'></bdo><ul id='w4NMM'></ul>

        <small id='w4NMM'></small><noframes id='w4NMM'>

        <tfoot id='w4NMM'></tfoot>
        <i id='w4NMM'><tr id='w4NMM'><dt id='w4NMM'><q id='w4NMM'><span id='w4NMM'><b id='w4NMM'><form id='w4NMM'><ins id='w4NMM'></ins><ul id='w4NMM'></ul><sub id='w4NMM'></sub></form><legend id='w4NMM'></legend><bdo id='w4NMM'><pre id='w4NMM'><center id='w4NMM'></center></pre></bdo></b><th id='w4NMM'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='w4NMM'><tfoot id='w4NMM'></tfoot><dl id='w4NMM'><fieldset id='w4NMM'></fieldset></dl></div>

      1. 是否有高級 CSS 縮小器/編譯器可以執行諸如去除

        Is there an advanced CSS minifier/compiler that does things like strip redundancy and comma separate identical rules?(是否有高級 CSS 縮小器/編譯器可以執行諸如去除冗余和逗號分隔相同規則之類的操作?) - IT屋-程

              <i id='31i3H'><tr id='31i3H'><dt id='31i3H'><q id='31i3H'><span id='31i3H'><b id='31i3H'><form id='31i3H'><ins id='31i3H'></ins><ul id='31i3H'></ul><sub id='31i3H'></sub></form><legend id='31i3H'></legend><bdo id='31i3H'><pre id='31i3H'><center id='31i3H'></center></pre></bdo></b><th id='31i3H'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='31i3H'><tfoot id='31i3H'></tfoot><dl id='31i3H'><fieldset id='31i3H'></fieldset></dl></div>
              • <bdo id='31i3H'></bdo><ul id='31i3H'></ul>
                <tfoot id='31i3H'></tfoot>
                  <tbody id='31i3H'></tbody>

                <small id='31i3H'></small><noframes id='31i3H'>

                  <legend id='31i3H'><style id='31i3H'><dir id='31i3H'><q id='31i3H'></q></dir></style></legend>
                  本文介紹了是否有高級 CSS 縮小器/編譯器可以執行諸如去除冗余和逗號分隔相同規則之類的操作?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  例如

                  input{margin:0}body{margin:0;background:white}

                  這樣寫會更短

                  input,body{margin:0}body{background:white}

                  或者這個

                  input,body{margin:0}body{margin:0;padding:0}

                  這樣寫會更短

                  input,body{margin:0}body{padding:0}

                  結論沒有這樣的工具查看接受的答案.

                  給工具作者的提示,您可能想考慮 gzip.有時,在二流優化上留下幾個字節最終會更短,因為 gzip 本質上是字節級重復數據刪除.如果有兩個相同的部分,gzip 將引用較早的部分.理想情況下在決定是否應部分或全部時間跳過某些優化以及選擇器和規則的順序時應考慮這一點.

                  解決方案

                  這可以使用 CSSO 來完成.

                  考慮以下輸入:

                  input{margin:0}body{margin:0;background:white}

                  CSSO 輸出:

                  input,body{margin:0}body{background:#fff}

                  (正是您要找的)

                  但不幸的是,CSSO 對此進行了優化:

                  .dont-care {背景圖像:url(圖像/chart.png");背景重復:不重復;}

                  收件人:

                  .dont-care{background-image:url("images/chart.png");background-repeat:no-repeat}

                  但是,CSSTidy 將上述轉換為相應的速記屬性:

                  .dont-care {背景:url(images/chart.png")不重復;}



                  優化 CSS 的四步解決方案:

                  這是我遵循的做法:

                  1. 合并 all.css 中的 CSS 文件.
                  2. 提供給 CSSO 輸入.
                  3. 點擊最小化
                  4. 將輸出粘貼到 all.min.css

                  除了支付@Grillz 手動完成它之外,到目前為止我還沒有找到更好的 CSS 優化交易..



                  但是舊的 IE hack 呢?

                  如果您對 IE6 和 7 使用 CSS hack,CSSO 將保留這些 hack.

                  例如:

                  .dont-care {背景圖像:url(圖像/chart.png");*背景圖像:url(圖像/chart.jpg");背景重復:不重復;}

                  CSSO 輸出:

                  .dont-care{background-image:url("images/chart.png");*background-image:url("images/chart.jpg");background-repeat:no-repeat}

                  CSSTidy 將忽略 asterik(* hack used for IE6),并輸出:

                  .dont-care {背景:url(images/chart.jpg")不重復;}

                  您還可以避免黑客攻擊,并為舊版 IE 使用單獨的 CSS 文件(例如 all.oldIE.css).在分別優化(使用前面描述的 7 個步驟)這兩個文件之后,這就是您最終可以在 HTML/masterpage/template/layout 文件的 <head> 標記中使用的內容:

                  <!--[if lt IE 8]><link href="css/all.oldIE.min.css" rel="stylesheet" type="text/css"/><![endif]--><!--[if gt IE 7]><!--><link href="css/all.min.css" rel="stylesheet" type="text/css"/><!--<![endif]-->

                  其中 all.min.css 將適用于除 IE 版本小于等于 7 的所有瀏覽器.但單獨使用 CSSO 是一個安全的選擇.


                  更新

                  跳過 CSSTidy 部分.CSSO 進行安全優化.根據他們的開發者的說法,速記優化并不安全:

                  <塊引用>

                  考慮這個例子:

                  <代碼>.a{背景附件:固定;}.b {背景圖像:url(圖像/chart.png");背景重復:不重復;}

                  <塊引用>

                  如果你有 <div class="a b"></div> - 一個同時擁有的元素類,你不能在你寫的時候優化 .b,因為它會覆蓋 .a 中設置的 background-attachment.
                  所以,不,這不是一個安全的優化.

                  For example

                  input{margin:0}body{margin:0;background:white}
                  

                  would be shorter written like this

                  input,body{margin:0}body{background:white}
                  

                  or this

                  input,body{margin:0}body{margin:0;padding:0}
                  

                  would be shorter written like this

                  input,body{margin:0}body{padding:0}
                  

                  Conclusion no such tool See the accepted answer.

                  A tip to the tool writers, you may want to consider gzip. Sometimes, leaving a few bytes on a second-rate optimization will be shorter in the end because gzip is essentially byte-level deduplication. If there are two identical sections, gzip will reference the earlier one. Ideally this would be considered in deciding if certain optimizations should be skipped some or all of the time, and what the order of the selectors and rules should be.

                  解決方案

                  This can be done using CSSO.

                  Consider the following input:

                  input{margin:0}body{margin:0;background:white}
                  

                  CSSO output:

                  input,body{margin:0}body{background:#fff}
                  

                  (exactly what you are looking for)

                  But unfortunately, CSSO optimize this:

                  .dont-care {
                      background-image: url("images/chart.png");
                      background-repeat: no-repeat;
                  }
                  

                  To:

                  .dont-care{background-image:url("images/chart.png");background-repeat:no-repeat}
                  

                  However, CSSTidy converts the above to the corresponding shorthand property:

                  .dont-care {
                      background:url("images/chart.png") no-repeat;
                  }
                  



                  Seven Four steps solution for optimizing CSS:

                  Here is the practice I follow:

                  1. Merge CSS files in all.css.
                  2. Supply to CSSO input.
                  3. Hit Minimize
                  4. Paste the output in all.min.css

                  Except paying @Grillz to get it done manually, I haven't found a better deal for CSS optimization thus far..



                  But what about old IE hacks?

                  If you are using CSS hacks for IE6 and 7, CSSO will preserve the hacks.

                  For example:

                  .dont-care {
                      background-image: url("images/chart.png");
                      *background-image: url("images/chart.jpg");
                      background-repeat: no-repeat;
                  }
                  

                  CSSO output:

                  .dont-care{background-image:url("images/chart.png");*background-image:url("images/chart.jpg");background-repeat:no-repeat}
                  

                  CSSTidy will ignore asterik(* hack used for IE6), and output:

                  .dont-care {
                      background:url("images/chart.jpg") no-repeat;
                  }
                  

                  You can also avoid hacks and use separate CSS file for older IE versions (say all.oldIE.css). After optimizing (using 7 steps described earlier) both files separately, this is what you may use in the <head> tag of your HTML/masterpage/template/layout file eventually:

                  <!--[if lt IE 8]><link href="css/all.oldIE.min.css" rel="stylesheet" type="text/css"/><![endif]--> 
                  <!--[if gt IE 7]><!--><link href="css/all.min.css" rel="stylesheet" type="text/css"/><!--<![endif]-->
                  

                  where all.min.css would work for all browsers except IE versions less than and equal to 7. But using CSSO alone is a safe bet.


                  Update

                  Skip the CSSTidy part. CSSO does safe optimization. According to their developer, shorthand optimization is not safe:

                  Consider that example:

                  .a{
                      background-attachment: fixed;
                  }
                  .b {
                      background-image: url("images/chart.png");
                      background-repeat: no-repeat;
                  }
                  

                  and if you'd have <div class="a b"></div> — an element with both classes, you can't optimize the .b as you write, 'cause it would override the background-attachment set in .a.
                  So, no, that's not a safe optimization.

                  這篇關于是否有高級 CSS 縮小器/編譯器可以執行諸如去除冗余和逗號分隔相同規則之類的操作?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Selenium WebDriver get text from CSS property quot;contentquot; on a ::before pseudo element(Selenium WebDriver 從 CSS 屬性“內容獲取文本在 ::before 偽元素上)
                  CSS Rotate Text Vertical - Extra Space on both sides(CSS垂直旋轉文本 - 兩側的額外空間)
                  Safari CSS Bug: Animation Rotation Direction Incorrect?(Safari CSS Bug:動畫旋轉方向不正確?)
                  Rotating 90 degrees in CSS in IE8 and lower(在 IE8 及更低版本的 CSS 中旋轉 90 度)
                  How to calculate translate x and y value when resize after rotate..?(旋轉后調整大小時如何計算平移x和y值..?)
                  Flip div with two sides of html(用html的兩側翻轉div)
                  • <small id='DMuuo'></small><noframes id='DMuuo'>

                        • <bdo id='DMuuo'></bdo><ul id='DMuuo'></ul>
                        • <tfoot id='DMuuo'></tfoot>

                          <legend id='DMuuo'><style id='DMuuo'><dir id='DMuuo'><q id='DMuuo'></q></dir></style></legend>
                          • <i id='DMuuo'><tr id='DMuuo'><dt id='DMuuo'><q id='DMuuo'><span id='DMuuo'><b id='DMuuo'><form id='DMuuo'><ins id='DMuuo'></ins><ul id='DMuuo'></ul><sub id='DMuuo'></sub></form><legend id='DMuuo'></legend><bdo id='DMuuo'><pre id='DMuuo'><center id='DMuuo'></center></pre></bdo></b><th id='DMuuo'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='DMuuo'><tfoot id='DMuuo'></tfoot><dl id='DMuuo'><fieldset id='DMuuo'></fieldset></dl></div>
                              <tbody id='DMuuo'></tbody>
                          • 主站蜘蛛池模板: 国产一区不卡在线观看 | 91精品国产乱码久久久久久久久 | 中文字幕日韩欧美一区二区三区 | 亚洲一区在线日韩在线深爱 | 欧美freesex黑人又粗又大 | 久久久91 | 视频一区中文字幕 | 精品国产乱码一区二区三区a | 日韩综合一区 | 久久av网站| 日韩久久久久久 | av首页在线 | 一区二区三区在线 | 中文字幕av在线 | 久久99精品久久久久久 | 一级a爱片久久毛片 | 中文字幕在线观看视频一区 | 久久男人 | 国产精品美女久久久久aⅴ国产馆 | 婷婷免费在线 | 日韩成人免费在线视频 | 国产精品久久久久久久7777 | 国产亚洲一区在线 | 中文字幕在线观 | 国产精品久久国产精品 | h在线播放 | 久久精品一区二区三区四区 | 成人国产在线观看 | 麻豆视频在线免费观看 | 欧美国产91| 成人午夜免费视频 | 91麻豆精品国产91久久久更新资源速度超快 | 午夜免费在线电影 | 国产不卡一区 | 国产精品欧美精品日韩精品 | 一区二区精品电影 | 国内自拍视频在线观看 | 日韩视频在线一区 | 国产激情免费视频 | 一区二区三区国产 | 亚洲欧美日韩中文在线 |