设为首页 - 加入收藏 ASP站长网(Aspzz.Cn)- 科技、建站、经验、云计算、5G、大数据,站长网!
热搜: 创业者 手机 数据
当前位置: 首页 > 服务器 > 系统 > 正文

CSS3 渐变(Gradients)之CSS3 线性渐变(9)

发布时间:2020-03-15 08:06 所属栏目:52 来源:站长网
导读:pstrong注意:/strongInternetExplorer9及之前的版本不支持渐变。/p /body /html (7)、重复的线性渐变 repeating-linear-gradient() 函数用于重复线性渐变: XML/HTML Code复制内容到剪贴板 !DOCTYPEhtml html he

<p><strong>注意:</strong> Internet Explorer 9 及之前的版本不支持渐变。</p>  

</body>  

</html>  
 

CSS3 渐变(Gradients)之CSS3 线性渐变


(7)、重复的线性渐变
 
 repeating-linear-gradient() 函数用于重复线性渐变:

XML/HTML Code复制内容到剪贴板

<!DOCTYPE html>  

<html>  

<head>  

<style>  

#grad1 {   

width:400px;   

    height: 200px;   

    background: -webkit-repeating-linear-gradient(red, yellow 10%, green 20%); /* Safari 5.1 - 6.0 */   

    background: -o-repeating-linear-gradient(red, yellow 10%, green 20%); /* Opera 11.1 - 12.0 */   

    background: -moz-repeating-linear-gradient(red, yellow 10%, green 20%); /* Firefox 3.6 - 15 */   

    background: repeating-linear-gradient(red, yellow 10%, green 20%); /* 标准的语法(必须放在最后) */   

}   

</style>  

</head>  

<body>  

<h3>重复的线性渐变</h3>  

<div id="grad1"></div>  

<p><strong>注意:</strong> Internet Explorer 9 及之前的版本不支持渐变。</p>  

</body>  

</html>  

CSS3 渐变(Gradients)之CSS3 线性渐变

(编辑:ASP站长网)

网友评论
推荐文章
    热点阅读