css3mask淡出文字

css3mask淡出文字

.p0_11wrap {
    width: 0.299rem;
    height: 7.68rem;
    overflow: hidden;
    background: url(/weiyeweiwangzhan/images/0/p0_11.png) no-repeat;
    background-size: 100%;
    background-position: 0rem 3.8rem;
    -webkit-mask: url(/weiyeweiwangzhan/images/0/p0_11zhezhao.png) no-repeat;
    -webkit-mask-size: 0.299rem 7.68rem;
    -webkit-mask-position: 0 0;
    position: absolute;
    left: 76.933%;
    top: 21.891%;
}
.p0_11warpzhezhao {
    width: 0.299rem;
    height: 7.68rem;
    background: url(/weiyeweiwangzhan/images/0/p0_11zhezhao.png);
    background-size: 0.299rem 7.68rem;
    background-position: 0rem 0rem;
    position: absolute;
    left: 76.933%;
    top: 21.891%;
}
.wenzianim1 {
    animation: wenzianim1 4s linear 1s forwards;
    -webkit-animation: wenzianim1 4s linear 1s forwards;
}
@keyframes wenzianim1 {
    0% {
        -webkit-mask-position: 0rem -8.080rem;
    }
    100% {
        -webkit-mask-position: 0rem 0rem;
    }
}
@-webkit-keyframes wenzianim1 {
    0% {
        -webkit-mask-position: 0rem -8.080rem;
    }
    100% {
        -webkit-mask-position: 0rem 0rem;
    }
}
  <div class="p0_11wrap wenzianim2">
        </div>

php微信卡券logo上传方法

php微信卡券logo上传方法

 $xiangmupath = $this->getxiangmupath();
        $logo        = $xiangmupath . '/images/1/12.png';
        $token       = '19_bEfPNDgMAEAqTcb3uHFzv9wz0_STJ66nsfN1mux9owE_JQ9Bga527WLReM3fWI_1cUn0M1S4kMDW0gSDWWbyqDuEmLUZCiGuhCcBXP0AGRqTgAxghSoZF5c54KobtYL44E0NUERT_-P49qBEFGLaACAPQV';
        $url         = "https://api.weixin.qq.com/cgi-bin/media/uploadimg?access_token={$token}";
        // $logo                = 'F:\phpStudy\WWW\mircoweb\mircoweb\wwwroot\App\Home\Controller/../../../Public/moban/images/1/12.png'; // 一定要图片的绝对路径
        $file                = '@'.$logo; // php5.6以后用到这个curlfile类
        $arr['buffer']       = $file; // 文件的数据流
        $arr['access_token'] = $token; // 调用接口凭证

        $curl = curl_init();
        curl_setopt($curl, CURLOPT_URL, $url);
        //不需要验证ssl证书
        curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
        //设置获取的信息以文件流的形式返回,而不是直接输出
        curl_setopt($curl, CURLOPT_POST, 1);
        curl_setopt($curl, CURLOPT_POSTFIELDS, $arr);
        curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
        $output = curl_exec($curl);
        print_r(json_decode($output,'true'));
        exit();

css3 svg路径蒙版动画

css3 svg路径蒙版动画

具体看https://www.cnblogs.com/oubenruing/p/9568954.html

还有个更好控制的写法

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <title>{$title}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1,user-scalable=no" />
    <meta name="format-detection" content="telephone=no" />
    <!-- Link Swiper's CSS -->
    <include file="commonheader" />
</head>

<body>
    <include file="jiazai" />
    <include file="commonmokuai" />
    <div class="showcontainer" style="display: block;">
       <div style="width:60%; height: 7.5rem; position: absolute;left:0px;top:0px;">
        <svg width="100%" height="100%" viewBox="0,0,246,120" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve">
     <defs>
    <mask id ="path1">
        <path id="path"  stroke="white" fill="none" stroke-width="20" d="M238,8L75.3,103.7c0,0-5.3,7.7-18,0S10.3,73,10.3,73" class="Path1"></path>
    </mask>
    </defs>
<image mask="url(#path1)" style="overflow:visible;" width="246" height="120" id="左下发光条" xlink:href="/moban/123.png">
    </image>
</svg>

      </div>
    </div>
    <script src="{$yuming}/js/TweenMax.js"></script>
    <script src="{$yuming}/js/DrawSVGPlugin.min.js"></script>
    <include file="commonfooter" />
    <script type="text/javascript">
    $(function() {
        myTween = TweenMax.fromTo("#path", 1, { drawSVG: "0%" }, { drawSVG: "100%" });
        // myTween.yoyo(true).repeat(-1);
    })
    </script>
</body>

</html>

vm虚拟机安装centos教程

1 下载64btn
http://isoredirect.centos.org/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-1810.iso

2 vm注意选择centos64bit 其他没什么问题了 有些不支持vt 需要bios设置下 具体参考https://zhidao.baidu.com/question/426682896.html

1安装 要设置密码
2还有选择有桌面的 特别注意软件尽量选gnome桌面安装(最小化安装好多功能都没有) 这样安装好有桌面
3 vm选择桥接模式 网络和主机名要打开以太网链接
4 注意要设置2个语言

另外登录的时候要输入 安装时候设置的密码 账号是root
ps 好像官方似乎没有32bit的

html5自动横屏的方法

html5自动横屏的方法

var evt = "onorientationchange" in window ? "orientationchange" : "resize";
 
 
 
window.addEventListener(evt, function() {
 
console.log(evt);
 
var width = document.documentElement.clientWidth;
 
var height = document.documentElement.clientHeight;
 
$print = $('#print');
 
if( width > height ){
 
 
 
$print.width(width);
 
$print.height(height);
 
$print.css('top', 0 );
 
$print.css('left', 0 );
 
$print.css('transform' , 'none');
 
$print.css('transform-origin' , '50% 50%');
 
}
 
else{
 
$print.width(height);
 
$print.height(width);
 
$print.css('top', (height-width)/2 );
 
$print.css('left', 0-(height-width)/2 );
 
$print.css('transform' , 'rotate(90deg)');
 
$print.css('transform-origin' , '50% 50%');
 
}