| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- @charset "UTF-8";
- * {
- margin: 0;
- padding: 0;
- list-style: none;
- text-decoration: none;
- box-sizing: border-box;
- }
- body, html {
- font-size: 30px;
- }
- /* 你好 */
- .windy, ul {
- color: #ff0;
- background-color: #f00;
- }
- h1 {
- width: 400px;
- height: 100px;
- font-size: 50px;
- background: yellow;
- }
- ul {
- width: 400px;
- height: 400px;
- background: #ff0;
- list-style: none;
- width: 200px;
- height: 300px;
- margin: 10px;
- border: 3px solid #00f;
- }
- ul li {
- padding: 10px;
- }
- ul li a {
- text-decoration: none;
- color: #00f;
- font-size: 40px;
- font-weight: bold;
- }
- ul li a:hover {
- color: #f00;
- }
- /*
- 混合宏
- @mixin 允许定义一个可以再整个样式表复制的样式
- @include 可以将mixin混入到整个样式表中
- */
- p {
- color: #00f;
- }
|