25 lines
1.1 KiB
Markdown
25 lines
1.1 KiB
Markdown
---
|
||
title: Cascading Style Sheets (CSS)
|
||
localeTitle: 层叠样式表(CSS)
|
||
---
|
||
### 层叠样式表(CSS)
|
||
|
||
CSS是Cascading Style Sheets的首字母缩写。它最初是在1996年发明的,现在是所有主要网络浏览器的标准功能。
|
||
|
||
CSS允许开发人员通过“设计”该页面的HTML结构来控制网页的外观。
|
||
|
||
CSS规范由[万维网联盟(W3C)](https://www.w3.org/)维护。
|
||
|
||
你可以在CSS中构建一些非常神奇的东西,例如这个纯CSS [扫雷游戏](https://codepen.io/bali_balo/pen/BLJONk) (它不使用JavaScript)。
|
||
|
||
![](https://cdn-images-1.medium.com/max/800/1*GFcKk9KxqHAnWa1ECcKDOQ.png)
|
||
|
||
#### 推荐阅读:
|
||
|
||
一个好的开始是freeCodeCamp课程[基本CSS简介](https://learn.freecodecamp.org/responsive-web-design/basic-css) 。
|
||
|
||
对于初学者的另一个建议是W3C的[HTML + CSS](https://www.w3.org/Style/Examples/011/firstcss)教程如何创建样式表。
|
||
|
||
网站[CSS Zen Garden](http://www.csszengarden.com/)是一个很好的例子,如何将相同的html设计为完全独特。
|
||
|
||
为了演示CSS的强大功能,请查看[Species In Pieces](http://species-in-pieces.com/#) 。 |