|
|
@ -15,6 +15,8 @@ |
|
|
|
<div class="flex-1">{{ item.c }}</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="mask-box1"></div> |
|
|
|
<div class="mask-box2"></div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
@ -72,6 +74,7 @@ export default { |
|
|
|
* 启动播报滚动事件 |
|
|
|
*/ |
|
|
|
const that = this; |
|
|
|
|
|
|
|
window.onload = function() { |
|
|
|
// BBAllTime = 0; |
|
|
|
that.oMarquee = document.getElementById('bobaodiv'); //滚动对象 |
|
|
@ -144,4 +147,26 @@ export default { |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.mask-box1 { |
|
|
|
height: 25%; |
|
|
|
width: 100%; |
|
|
|
background: -webkit-gradient(linear, 0 0, 0 100%, from(rgba(4, 25, 49, 1)), to(rgba(4, 25, 49, 0))); |
|
|
|
// rgba(4, 25, 49, 0); |
|
|
|
position: absolute; |
|
|
|
top: 0; |
|
|
|
left: 0; |
|
|
|
z-index: 100; |
|
|
|
} |
|
|
|
|
|
|
|
.mask-box2 { |
|
|
|
height: 25%; |
|
|
|
width: 100%; |
|
|
|
background: -webkit-gradient(linear, 0 0, 0 100%, from(rgba(2, 53, 103, 0)), to(rgba(2, 53, 103, 1))); |
|
|
|
// rgba(4, 25, 49, 0); |
|
|
|
position: absolute; |
|
|
|
bottom: 0; |
|
|
|
left: 0; |
|
|
|
z-index: 100; |
|
|
|
} |
|
|
|
</style> |
|
|
|