The State of CSS

The article is about css,there are five things you need to know.

  1. you don't need a naming convention.
    because all selectors exist in the same global namespace, over time it becomes very likely that you'll run into unexpected side effects such as selectors targeting elements that you didn't intend, or selectors being overridden by other selectors. So, we have side-stepped these issues with methodologies(OOCSS, SMACSS, or more popular BEM) that define naming conventions to help us avoid class name collisions;

  2. you don't need float
    flexbox is a wonderful module layout

  3. you don't need a grid framework
    you can use css grid layout

  4. you don't need a preprocessor
    Modern browsers now have native support for CSS variable ** and ** calc(). Other feature such as color modifications, and mixins are not far behind.
    PortCSS is a "tool for transforming CSS with Javascript",Use tomorrom's CSS, today
    Babel:Use next generation Javascript, today.

  5. you don't need css
    you can style web applications without ever writing a single .css file.
    you can use jss and styled-components

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關閱讀更多精彩內(nèi)容

  • **2014真題Directions:Read the following text. Choose the be...
    又是夜半驚坐起閱讀 11,056評論 0 23
  • Awesome Ruby Toolbox Awesome A collection of awesome Ruby...
    debbbbie閱讀 3,085評論 0 3
  • 你好,女神,我還是我,一個三本的大學生。很幸運高中的時候認識了你,認識了你的古靈精怪,膜拜了你的聰明伶俐,挑逗過你...
    樂俠閱讀 571評論 0 1
  • 粗發(fā)一個
    0033ca9e42a8閱讀 121評論 0 0
  • 一片空間和一段時間, 構(gòu)成了一個容器。 像缸,像壺,像杯子, 裝下了一抹歡喜、焦慮和悲傷。 這容器穩(wěn)定地存放了許久...
    戀曲1991閱讀 224評論 0 0

友情鏈接更多精彩內(nèi)容