💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
[TOC] # 案例1:图片边框 ![](https://img.kancloud.cn/60/31/60319ffed55539756e92d37b363349aa_354x478.png) > 1. 必须先设置普通边框 > 2. 图像边框语法 border-image:url() 30 30 30 30 stretch;round; ![](https://img.kancloud.cn/16/26/16267868d7884f2b2a172e506ad708a8_521x247.png) # 案例2:线性渐变背景 ![](https://img.kancloud.cn/5c/3d/5c3dee9c0f18abcc365256605e4ada9d_565x319.png) [旧版微信首页http://data.pzhuweb.cn/weixin.html](http://data.pzhuweb.cn/weixin.html) # 案例3:滤镜 修改所有图片的颜色为黑白 (100% 灰度): ![](https://img.kancloud.cn/7e/ad/7ead06c692789d16105ffc21d8a50b7c_561x277.png) ``` img { -webkit-filter: grayscale(100%); /* Chrome, Safari, Opera */ filter: grayscale(100%); } ``` ![](https://img.kancloud.cn/a8/81/a881af35ecdce1e17f5d189b3e158ce2_625x819.png) ![](https://img.kancloud.cn/97/b7/97b78a3234acbfc04d55825d0b629d52_825x290.png) # 案例4:等待条 * [ ] 变形 ``` transform: scale(); /*拉伸*/ translate(); /*平移*/ rotate(); /*旋转*/ skew(); /*倾斜*/ ``` * [ ] 动画 ``` animation-name: my;/*动画名称*/ animation-duration: 1.2s;/*动画时间*/ animation-iteration-count: infinite; /*重复次数*/ animation-timing-function: ease-in-out; /*动画曲线*/ animation-delay: 1s;/*延迟时间*/ @-webkit-keyframes my{ 百分比{} } ``` ![](https://img.kancloud.cn/b8/65/b86547372186c7d1f9acaff712a9c399_123x118.gif)