1.border-image
Image border
2023-09-14 08:58:51 时间
1.设置在元素围绕的border的图片,用图片代替边框
语法: broder-image-source:图片 border-image-slice:切下的区域,数字|百分比(相对于图像的高度和宽度) border-image-width:在round情况下设置repeat图片的宽度 border-image-repeat:stretch|round|repeat|space border-image-outset:
border-image有三个要求
1.使用在border上,元素上必须有border属性
2.切下图片像素slice
3.定义中间的区域是重复拉伸还是直接拉伸
简写: border-image:url("source") 30 round; 简写只能写图片地址,slice区域,和repeat方式,border-image-width须单独写,否则无法显示 JavaScript syntax: object.style.borderImageSlice="30%"
浏览器支持
原图片
1.stretch拉伸,slice是30,根据单个小方块来计算
2.round重复小方块平铺,slice是30,根据单个小方块来计算
3.repeat重复平铺,slice是30,根据单个小方块来计算
4.slice值是百分比,相对于图像的高度和宽度
5.border-image-width:在round情况下设置repeat图片的宽度
相关文章
- Image.FrameDimensionsList 属性备注
- Android实例-ImageList与Image的应用
- Universal-Image-Loader源码分析,及常用的缓存策略
- Universal-image-loader Mason 修复版(ImageLoader Image can't be decoded)
- Universal-Image-Loader分析:
- [CSS3] Image Width with sizes (srcset & sizes)
- [D3] Add image to the node
- [CSS] Image replacement, text-indent, hover sprite,
- 【译】UNIVERSAL IMAGE LOADER. PART 3---ImageLoader详解
- Image数据数值计算处理的一个小问题
- Spartacus image alt属性的绑定实现
- Paper之BigGAN:《Large Scale Gan Training For High Fidelity Natural Image Synthesis》翻译与解读
- 已解决Image.open()识别图片抛出异常PIL.UnidentifiedImageError: cannot identify image file的正确解决方法,亲测有效
- image.paste()函数【将一张图片粘贴到另一张图片上】
- LVGL 8.2 Image styling and offset
- 【CSS】盒子边框 ① ( 网页布局本质 | 盒子模型 | 盒子边框 Border | border-width 宽度 | border-style 边框样式 | 边框颜色 | 边框设置综合写法 )
- 使用内网的Docker Image启动AcmeAir应用
- image-webpack-loader包安装报错解决