| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- @charset "UTF-8";
- * {
- margin: 0;
- padding: 0;
- list-style: none;
- text-decoration: none;
- box-sizing: border-box;
- }
- body, html {
- font-size: 30px;
- }
- /* 你好 */
- h1 {
- font-size: 50px;
- color: plum;
- width: 200px;
- height: 300px;
- margin: 10px;
- border: 3px solid #00f;
- border-radius: 30px;
- background: #f00;
- box-shadow: 30px 20px 4px plum;
- }
- ul {
- width: 400px;
- height: 400px;
- background: #ff0;
- list-style: none;
- }
- 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;
- }
|