国产xxxx99真实实拍_久久不雅视频_高清韩国a级特黄毛片_嗯老师别我我受不了了小说

資訊專欄INFORMATION COLUMN

CSS guidelines

e10101 / 2573人閱讀

原文鏈接:鏈接描述

Syntax and Formatting

At a very high-level, we want

two (2) space indents, no tabs;

80 character wide columns;

multi-line CSS;

meaningful use of whitespace.

But, as with anything, the specifics are somewhat irrelevant—consistency is key.

Multiple Files

With the meteoric rise of preprocessors of late, more often is the case that developers are splitting CSS across multiple files.

Even if not using a preprocessor, it is a good idea to split discrete chunks of code into their own files, which are concatenated during a build step.

Table of Contents

An up-to-date table of contents provides a team with a single, canonical catalogue of what is in a CSS project, what it does, and in what order.

A simple table of contents will—in order, naturally—simply provide the name of the section and a brief summary of what it is and does.

Naturally, this section would be substantially larger on the majority of projects, but hopefully we can see how this section—in the master stylesheet—provides developers with a project-wide view of what is being used where, and why.

80 Characters Wide Meaningful Whitespace

One (1) empty line between closely related rulesets.

Two (2) empty lines between loosely related rulesets.

Five (5) empty lines between entirely new sections.

HTML

When writing multiple values in a class attribute, separate them with two spaces

When multiple classes are related to each other, consider grouping them in square brackets ([ and ])

As with our rulesets, it is possible to use meaningful whitespace in your HTML. You can denote thematic breaks in content with five (5) empty lines

Separate independent but loosely related snippets of markup with a single empty line

文章版權歸作者所有,未經允許請勿轉載,若此文章存在違規行為,您可以聯系管理員刪除。

轉載請注明本文地址:http://m.specialneedsforspecialkids.com/yun/115446.html

相關文章

  • CSS魔法堂:Box-Shadow 沒那么簡單啦:)

    摘要:陰影距離原位置的垂直位移,正數表示向下移動,負數表示向上移動。實現原理純個人理解創建一個與元素尺寸一致的陰影盒子將陰影盒子定位到于元素重合,并位于元素之上水平和垂直各畫兩條線,分別跟元素重合共條分別記為根據和移動。 前言 說起box-shadow那第一個想法當然就是用來實現陰影,其實它還能用于實現其他好玩的效果的,本篇就打算說說box-shadow的那些事。 二話不說看效果 showI...

    Galence 評論0 收藏0
  • 前端練級攻略(第一部分)

    摘要:第一部分介紹了如何使用和開發接口。由于系統變得越來越復雜,人們提出了稱為預處理器和后處理器的工具來管理復雜性。當您第一次得知有預處理器和后處理器時,你很有可能在任何地方已經使用它們。我之前建議的文章,,也涵蓋了預處理器相關的知識。 我記得我剛開始學習前端開發的時候。我看到了很多文章及資料,被學習的資料壓得喘不過氣來,甚至不知道從哪里開始。 本指南列出前端學習路線,并提供了平時收藏的一些...

    qpal 評論0 收藏0
  • 前端資源整理 - 訂閱、工具等

    摘要:取自我的的,歡迎,歡迎。原不定期更新,此文可能斷更。最新更新時間。前端資源中文平時開發和學習過程中自己收集的一些前端資源。自行取用,不斷更新。你也可以關注我從而在我的點贊中了解到更多有意思的項目。前端之路,且行且珍惜。 取自 我的GITHUB 的 fe-store-house repo,歡迎 PR,歡迎 STAR。原 repo 不定期更新,此文可能斷更。斷更了一年多,重新更新一下,似乎...

    caiyongji 評論0 收藏0

發表評論

0條評論

最新活動
閱讀需要支付1元查看
<