zoukankan      html  css  js  c++  java
  • 文字渐变和边框渐变

    边框渐变:

    1 border-image: -webkit-linear-gradient( red , blue) 30 30;
    2 border-image: -moz-linear-gradient( red, blue) 30 30;
    3 border-image: linear-gradient( red , blue) 30 30;

    文字渐变:(只支持-webkit-)

    1 background-image: -webkit-gradient(linear, 0 0, 0 80%, from(nth($color7, 3)), to(nth($color7, 4)));
    2 -webkit-background-clip: text;
    3 -webkit-text-fill-color: transparent;

    背景渐变:

    复制代码
    1 filter: alpha(opacity=100 finishopacity=50 style=1 startx=0,starty=0,finishx=0,finishy=150) progid:DXImageTransform.Microsoft.gradient(startcolorstr=red,endcolorstr=blue,gradientType=0);
    2 -ms-filter: alpha(opacity=100 finishopacity=50 style=1 startx=0,starty=0,finishx=0,finishy=150) progid:DXImageTransform.Microsoft.gradient(startcolorstr=red,endcolorstr=blue,gradientType=0);  
    3 background: red; /* 一些不支持背景渐变的浏览器 */  
    4 background: -moz-linear-gradient(top, red, blue);  
    5 background: -webkit-gradient(linear, 0 0, 0 bottom, from(red), to(blue));
    复制代码

     

     
  • 相关阅读:
    pom.xml将jar包导入
    获取当前系统日期的前一天日期
    判断socket连接是否失效
    java读取数据,2,2,1方式读取
    笔记
    回调机制
    吧字符串按逗号分割为数组
    时间格式的转变
    java.net.SocketException四大异常解决方案
    log4j
  • 原文地址:https://www.cnblogs.com/libin-1/p/5888480.html
Copyright © 2011-2022 走看看