相关疑难解决方法(0)

如何在文本上应用CSS渐变,从透明颜色到不透明颜色

干杯!

我是CSS/HTML的新手,但我想在文本上应用渐变,如下图所示.我怎样才能用css实现它?


  在此输入图像描述

css html5 css3

31
推荐指数
3
解决办法
3万
查看次数

将线性渐变添加到可滚动的 div

我需要在可滚动 div 的底部添加白色线性渐变,它应该始终位于 div 的底部。我使用固定位置添加它,它适用于除 IE >= 9 之外的所有浏览器。我需要它用于所有浏览器,包括 IE>=9。它应该是这样的 - http://prntscr.com/ne3rfe

这是那个div的css代码

 .perfect-scrollbar::before {
  content: "";
  position: fixed;
  overflow: hidden;
  width: 100%;
  height: 100%;
  bottom: 0;
  background: #7db9e8;
  background: -moz-linear-gradient(top, #7db9e8 0%, #1e5799 101%);
  background: -webkit-linear-gradient(top, #7db9e8 0%, #1e5799 101%);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 60%, rgba(255, 255, 255, .8) 101%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#7db9e8', endColorstr='#1e5799', GradientType=0);
} 
Run Code Online (Sandbox Code Playgroud)

html css

6
推荐指数
1
解决办法
2659
查看次数

标签 统计

css ×2

css3 ×1

html ×1

html5 ×1