网站首页 > 基础教程 正文
特性 例子
新增选择器 p:nth-child(n){color: rgba(255, 0, 0, 0.75)}
弹性盒模型 display: flex;
多列布局 column-count: 5;
媒体查询 @media (max-width: 480px) {.box: {column-count: 1;}}
个性化字体 @font-face{font-family: BorderWeb; src:url(BORDERW0.eot);}
颜色透明度 color: rgba(255, 0, 0, 0.75);
圆角 border-radius: 5px;
渐变 background:linear-gradient(red, green, blue);
阴影 box-shadow:3px 3px 3px rgba(0, 64, 128, 0.3);
倒影 box-reflect: below 2px;
文字装饰 text-stroke-color: red;
文字溢出 text-overflow:ellipsis;
背景效果 background-size: 100px 100px;
边框效果 border-image:url(bt_blue.png) 0 10;
转换
旋转 transform: rotate(20deg);
倾斜 transform: skew(150deg, -10deg);
位移 transform: translate(20px, 20px);
缩放 transform: scale(.5);
平滑过渡 transition: all .3s ease-in .1s;
动画 @keyframes anim-1 {50% {border-radius: 50%;}} animation: anim-1 1s;
欢迎关注
猜你喜欢
- 2024-10-12 好程序员HTML5培训教程-总结30个CSS3选择器
- 2024-10-12 在Vue中创建可重用的 Transition vue中:key
- 2024-10-12 css动画之transition css动画之正方体旋转
- 2024-10-12 web前端:CSS3制作炫酷的下拉框 前端下拉框怎么写
- 2024-10-12 快来看看:CSS3实现动画的三种方式
- 2024-10-12 纯CSS3制作的下划线下拉菜单特效 css下划线样式怎么写
- 2024-10-12 Web开发学习笔记(36)——CSS3(10)2D和3D的转换-1
- 2024-10-12 令程序员惊叹的一些CSS3效果库 css效果大全
- 2024-10-12 D3.js v5+入门 d3.js three.js
- 2024-10-12 css3实现跳动的音符效果 跳动音符怎么制作
- 最近发表
- 标签列表
-
- jsp (69)
- pythonlist (60)
- gitpush (78)
- gitreset (66)
- python字典 (67)
- dockercp (63)
- gitclone命令 (63)
- dockersave (62)
- linux命令大全 (65)
- mysql教程 (60)
- pythonif (86)
- location.href (69)
- deletesql (62)
- c++模板 (62)
- linuxgzip (68)
- 字符串连接 (73)
- nginx配置文件详解 (61)
- html标签 (69)
- c++初始化列表 (64)
- mysqlinnodbmyisam区别 (63)
- arraylistadd (66)
- console.table (62)
- mysqldatesub函数 (63)
- window10java环境变量设置 (66)
- c++虚函数和纯虚函数的区别 (66)