CSS3中border-image,width和outset值是什么意思?

html-css014

CSS3中border-image,width和outset值是什么意思?,第1张

border-image 属性是一个简写属性,用于设置以下属性:

border-image-source

border-image-slice

border-image-width

border-image-outset

border-image-repeat

border-image-source

用在边框的图片的路径。

border-image-slice

图片边框向内偏移。

border-image-width

图片边框的宽度。

border-image-outset

边框图像区域超出边框的量。

border-image-repeat

图像边框是否应平铺(repeated)、铺满(rounded)或拉伸(stretched)。

参考网址不是说的很明白了么?

border-image:url:(images/WhiteButton.png) 0 12 0 12 stretch stretch

“0 12 0 12”:按顺时针方向分别是上右下左边框的宽度,即上:0;右:12;下:0左:12。

stretch | repeat | round 即为除去边框后的图像拉伸的方法,第一个stretch为上下拉伸方法,第二个stretch为左右拉伸方法:

stretch:指定用拉伸方式来填充边框背景图。

repeat:指定用平铺方式来填充边框背景图。当图片碰到边界时,如果超过则被截断。

round:指定用平铺方式来填充边框背景图。图片会根据边框的尺寸动态调整图片的大小直至正好可以铺满整个边框。

border-radios 添加圆角边框

border-shadow:给框添加阴影 (水平位移,垂直位移,模糊半径,阴影尺寸,阴影颜色,insetr(内/外部阴影))

border-image:设置边框图像

border-image-source 边框图片的路径

border-image-slice 图片边框向内偏移

border-image-width 图片边框的宽度

border-image-outset 边框图像区域超出边框的量

border-image-repeat 图像边框是否平铺(repeat 平铺 round 铺满stretch 拉伸)

Background-size 背景图片尺寸

Background-origin规定background-position属性相对于什么位置定位

Background-clip 规定背景的绘制区域(padding-box,border-box,content-box)

Linear-gradient()线性渐变

Radial-gradient()径向渐变

Word-break:定义如何换行

Word-wrap:允许长的内容可以自动换行

Text-overflow:指定当文本溢出包含它的元素,应该干啥

Text-shadow:文字阴影(水平位移,垂直位移,模糊半径,阴影颜色)

Transform 应用于 2D3D 转换,可以将元素旋转,缩放,移动,倾斜

Transform-origin 可以更改元素转换的位置,(改变 xyz 轴)

Transform-style 指定嵌套元素怎么样在三位空间中呈现

rotate 旋转 translate(x,y)指定元素在二维空间的位移 scale(n)

定义缩放转换

Perspective(n)为 3D 转换 translate rotate scale

Transition-proprety 过渡属性名

Transition-duration 完成过渡效果需要花费的时间

Transition-timing-function 指定切换效果的速度

Transition-delay 指定什么时候开始切换效果

Animation-name 为@keyframes 动画名称

animation-duration 动画需要花费的时间

animation-timing-function 动画如何完成一个周期

animation-delay 动画启动前的延迟间隔

animation-iteration-count 动画播放次数

animation-direction 是否轮流反向播放动