css渐变多个背景

AI摘要
Deepseek提供支持
<style>
		html {
			background: -webkit-linear-gradient(left, yellow, red);
			background: linear-gradient(to left, yellow, red);
			height: 100%;
		}

		body {
			font: 14px/1.5 courier;
			color: #000;
		}
	
		p {
			width: 200px;
			height: 200px;
			padding: 20px;
			margin: 20px 0 0 20px;
			float: left;
			border: 1px solid yellow;
		}
	
		#gradient1 {
			background: #888 url(images/gradientLinear.jpg) repeat-x; /* Background images can be used for browsers that aren't capable of producing gradients */
			background: -webkit-linear-gradient(yellow, red); /* Backup for major browsers that can still handle gradients */
			background: linear-gradient(yellow, red); /* The CSS3 standard */
		}
		
		#gradient2 {
			background: -webkit-linear-gradient(right, yellow, red);
			background: linear-gradient(to right, yellow, red);
		}
		
		#gradient3 {
			background: -webkit-linear-gradient(bottom right, yellow, red);
			background: linear-gradient(to bottom right, yellow, red);
		}
		
		#gradient4 {
			background: -webkit-linear-gradient(20deg, yellow, red);
			background: linear-gradient(20deg, yellow, red);
		}
		
		#gradient5 {
			background: -webkit-linear-gradient(hsl(0,100%,50%), hsl(60,100%,50%), hsl(120,100%,50%), hsl(180,100%,50%), hsl(240,100%,50%), hsl(300,100%,50%));
			background: linear-gradient(hsl(0,100%,50%), hsl(60,100%,50%), hsl(120,100%,50%), hsl(180,100%,50%), hsl(240,100%,50%), hsl(300,100%,50%));
		}
		
		#gradient6 {
			background: -webkit-linear-gradient(135deg, hsl(36,100%,50%) 10%, hsl(72,100%,50%) 60%, white 90%);
			background: linear-gradient(135deg, hsl(36,100%,50%) 10%, hsl(72,100%,50%) 60%, white 90%);
		}
	
	</style>
</head>
<body>
	<p id="gradient1"><code>background: linear-gradient(yellow, red);</code></p>
	<p id="gradient2"><code>background: linear-gradient(to right, yellow, red);</code></p>
	<p id="gradient3"><code>background: linear-gradient(to bottom right, yellow, red);</code></p>
	<p id="gradient4"><code>background: linear-gradient(20deg, yellow, red);</code></p>
	<p id="gradient5"><code>background: linear-gradient(hsl(0,100%,50%), hsl(60,100%,50%), hsl(120,100%,50%), hsl(180,100%,50%), hsl(240,100%,50%), hsl(300,100%,50%));</code></p>
	<p id="gradient6"><code>background: linear-gradient(135deg, hsl(36,100%,50%) 10%, hsl(72,100%,50%) 60%, white 90%);</code></p>

预览:

广告
广告图片
温馨提示 : 非特殊注明,否则均为©李联华的博客网原创文章,本站文章未经授权禁止任何形式转载;来自:俄亥俄州·哥伦布 ,欢迎您的访问!
文章链接:https://www.lilianhua.com/css-gradient-multiple-backgrounds.html
请先登录才能参与答题
距本场结束剩 00 00 00 00
轻量应用服务器 2核2G
200M峰值带宽,适用于网站搭建、Web应用、容器环境、电商独立站等
立即前往
扫码进入
扫描二维码购买
文澜千文

文澜千文

请登录以使用此功能。

|
皇冠(danisa)丹麦曲奇饼干礼盒368g  休闲零食团购囤货送礼物   印尼进口 皇冠(danisa)丹麦曲奇饼干礼盒368g 休闲零食团购囤货送礼物 印尼进口
弹窗图片

Linux AI

记不住繁琐的Linux参数?让AI为你精准检索!输入你的需求,一秒锁定标准命令,彻底告别搜索引擎的冗长翻找。

Loading...

请您留言

如有任何关于本站的任何问题,欢迎联系我们,我们会第一时间为您解答。

客服
联系客服咨询

Hi,如果对于本站的任何问题你都可以在此联系到我们,我们会第一时间为您解。

关注微信公众号
QQ联系
立即联系客服
1546482882
lee@8i5.net