[英]Single gradient to multiple images
您将需要将图像放在div
,然后使用所需的渐变为div
的背景设置样式。 例如:
HTML
<div id="gradient">
<img src="..." /><img src="..." /><img src="..." />
</div>
CSS
#gradient {
width: 300px; //Whatever the total width of the images is
height: 61px; //Whatever the height of the images is
... //Gradient CSS goes here
}
这是一个小提琴,显示它在行动: http : //jsfiddle.net/2aHHu/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.