THE WORLD'S LARGEST WEB DEVELOPER SITE

CSS 教程

CSS首页 CSS简介 CSS语法 CSS选择器 CSS如何 CSS注释 CSS颜色 CSS背景 CSS边框 CSS边距 CSS填充 CSS高度/宽度 CSS Box模型 CSS大纲 CSS文字 CSS字体 CSS图标 CSS链接 CSS列表 CSS表 CSS显示 CSS最大宽度 CSS位置 CSS溢出 CSS浮动 CSS内联块 CSS对齐 CSS组合器 CSS伪类 CSS伪元素 CSS不透明度 CSS导航栏 CSS下拉列表 CSS图片库 CSS图像精灵 CSS属性选择器 CSS表格 CSS计数器 CSS网站布局 CSS单位 CSS特异性

CSS高级

CSS圆角 CSS边框图片 CSS背景 CSS颜色 CSS渐变 CSS阴影 CSS文字 Effects CSS Web字体 CSS 2D转换 CSS 3D变形 CSS过渡 CSS动画 CSS工具提示 CSS样式图片 CSS对象适合 CSS按钮 CSS分页 CSS多列 CSS用户界面 CSS变量 CSS Box大小 CSS Flexbox CSS媒体查询 CSS MQ示例

CSS 自适应

RWD简介 后视视口 RWD网格视图 RWD媒体查询 RWD图像 RWD视频 RWD框架 RWD模板

CSS 网格

网格介绍 网格容器 网格项

CSS 示例

CSS模板 CSS示例 CSS测验 CSS 练习 CSS证书

CSS 参考

CSS参考 CSS选择器 CSS功能 CSS参考 Aural CSS Web安全字体 CSS动画 CSS单位 CSS PX-EM转换器 CSS颜色 CSS颜色值 CSS默认值 CSS浏览器支持

CSS Tutorial

CSS is a language that describes the style of an HTML document.

CSS describes how HTML elements should be displayed.

This tutorial will teach you CSS from basic to advanced.

Start learning CSS now »

示例 in Each Chapter

This CSS tutorial contains hundreds of CSS examples.

With our online editor, you can edit the CSS, and click on a button to view the result.

CSS Example

body {
  background-color: lightblue;
}

h1 {
  color: white;
  text-align: center;
}

p {
  font-family: verdana;
  font-size: 20px;
}
来试试吧 »

Click on the "来试试吧" button to see how it works.


CSS示例

Learn from over 300 examples! With our editor, you can edit the CSS, and click on a button to view the result.

Go to CSS示例!


CSS模板

We have created some responsive W3.CSS templates for you to use.

You are free to modify, save, share, and use them in all your projects.

Free CSS模板!



CSS 练习 and 测试 Test

Test your CSS skills at W3Schools!

Start CSS 练习!

Start CSS测验!


CSS 参考

At W3Schools you will find complete CSS references of all properties and selectors with syntax, examples, browser support, and more.

CSS Properties 参考

CSS选择器 参考

CSS功能 参考

CSS动画 参考

CSS Aural 参考

CSS单位

CSS Color 参考

CSS默认值

CSS浏览器支持


CSS Exam - Get Your Diploma!

W3Schools Certification

W3Schools' Online Certification

The perfect solution for professionals who need to balance work, family, and career building.

More than 25 000 certificates already issued!

Get Your 证书 »

The HTML证书 documents your knowledge of HTML.

The CSS证书 documents your knowledge of advanced CSS.

The JavaScript 证书 documents your knowledge of JavaScript and HTML DOM.

The Python 证书 documents your knowledge of Python.

The jQuery证书 documents your knowledge of jQuery.

The SQL证书 documents your knowledge of SQL.

The PHP 证书 documents your knowledge of PHP and MySQL.

The XML 证书 documents your knowledge of XML, XML DOM and XSLT.

The Bootstrap 证书 documents your knowledge of the Bootstrap framework.




W3Schools is optimized for learning, testing, and training. 示例 might be simplified to improve reading and basic understanding. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using this site, you agree to have read and accepted our terms of use, cookie and privacy policy. Copyright 1999-2020 by Refsnes Data. All Rights Reserved.
Powered by W3.CSS.

W3Schools.com