有人知道爲什麼我不能得到這個線性漸變淡出此div的右側?淡出div的右側
- http://jsfiddle.net/yykv5mLz/
- http://colorzilla.com/gradient-editor/#ffffff+72,ffffff+100&0+72,1+100
.main a {
display: inline;
}
.main {
height: 50px;
overflow-x: scroll;
white-space: nowrap;
}
.fader {
/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ffffff+72,ffffff+100&0+72,1+100 */
background: -moz-linear-gradient(left, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, 1) 100%);
/* FF3.6+ */
background: -webkit-gradient(linear, left top, right top, color-stop(72%, rgba(255, 255, 255, 0)), color-stop(100%, rgba(255, 255, 255, 1)));
/* Chrome,Safari4+ */
background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, 1) 100%);
/* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(left, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, 1) 100%);
/* Opera 11.10+ */
background: -ms-linear-gradient(left, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, 1) 100%);
/* IE10+ */
background: linear-gradient(to right, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, 1) 100%);
/* W3C */
filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#00ffffff', endColorstr='#ffffff', GradientType=1);
/* IE6-9 */
copy
}
<div class="main">
<div class="fader">
<a>Test</a>
<a>Test</a>
<a>Test</a>
<a>Test</a>
<a>Test</a>
<a>Test</a>
<a>Test</a>
<a>Test</a>
<a>Test</a>
<a>Test</a>
<a>Test</a>
<a>Test</a>
<a>Test</a>
<a>Test</a>
<a>Test</a>
<a>Test</a>
<a>Test</a>
<a>Test</a>
<a>Test</a>
<a>Test</a>
<a>Test</a>
<a>Test</a>
<a>Test</a>
<a>Test</a>
<a>Test</a>
<a>Test</a>
<a>Test</a>
<a>Test</a>
<a>Test</a>
<a>Test</a>
<a>Test</a>
<a>Test</a>
</div>
</div>