css3详解3课件chapter5渐变_第1页
css3详解3课件chapter5渐变_第2页
css3详解3课件chapter5渐变_第3页
css3详解3课件chapter5渐变_第4页
css3详解3课件chapter5渐变_第5页
已阅读5页,还剩13页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

CSS3渐变今日主打CSS3渐变CSS3线性渐变CSS3径向渐变CSS3渐变渐变(gradients)可以在两个或多个指定的颜色之间显示平稳的过渡兼容性IEChromeFireFoxSafariOpera10+26+16+6.1+12.1+10.0–webkit-3.6–moz-5.1–webkit-11.6–o-CSS3线性渐变线性渐变(LinearGradients)属性是沿着一根轴线改变颜色,从起点到终点颜色进行顺序渐变(从一边拉向另一边)语法background:linear-gradient(direction,color-stop1,color-stop2,...);举个栗子CSS3线性渐变线性渐变-从上到下(默认)background:linear-gradient(color-stop1,color-stop2,...);CSS3线性渐变线性渐变-从左到右background:-webkit-linear-gradient(begin-direction,color-stop1,color-stop2,...);background:-moz-linear-gradient(end-direction,color-stop1,color-stop2,...);background:-o-linear-gradient(end-direction,color-stop1,color-stop2,...);background:linear-gradient(toend-direction,color-stop1,color-stop2,...);CSS3线性渐变线性渐变–对角background:-webkit-linear-gradient(begin-level

begin-vertical,color-stop1,color-stop2,...);background:-moz-linear-gradient(end-level

end-vertical,color-stop1,color-stop2,...);background:-o-linear-gradient(end-level

end-vertical,color-stop1,color-stop2,...);background:linear-gradient(to

end-level

end-vertical,color-stop1,color-stop2,...);CSS3线性渐变线性渐变–使用角度语法background:linear-gradient(angle,color-stop1,color-stop2,...);角度说明角度是指水平线和渐变线之间的角度,逆时针方向计算。0deg将创建一个从下到上的渐变,90deg将创建一个从左到右的渐变。CSS3线性渐变线性渐变–颜色结点语法background:linear-gradient(color1length|percentage,color2length|percentage,...);CSS3线性渐变线性渐变–重复渐变语法background:repeating-linear-gradient(color1length|percentage,color2length|percentage,...);CSS3径向渐变径向渐变(RadialGradients)属性从起点到终点颜色从内到外进行圆形渐变(从中间向外拉)语法background:radial-gradient(center,shapesize,start-color,...,last-color);举个栗子CSS3径向渐变径向渐变-颜色结点均匀分布(默认)background:radial-gradient(color-stop1,color-stop2,...);CSS3径向渐变径向渐变-颜色结点不均匀分布background:radial-gradient(color1length|percentage,color2length|percentage,...);CSS3径向渐变径向渐变–设置形状语法background:radial-gradient(shape,color-stop1,color-stop2,...);形状说明circle——圆形ellipse——椭圆(默认)CSS3径向渐变径向渐变–尺寸大小关键字语法background:radial-gradient(size,color-stop1,color-stop2,...);关键字说明closest-side:最近边farthest-side:最远边closest-corner:最近角farthest-corner:最远角CSS3径向渐变径向渐变–重复渐变语法background:repeating-radial-gradien(color1length|percentage,color2length|percentage,...

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论