zoukankan      html  css  js  c++  java
  • 微信公众号 SVG长按互动

    <section class=""
            style="display: block; 100%;height:667px;overflow:hidden;margin-top: -1px;vertical-align: top;background-position: 0% 0%;background-repeat: no-repeat;background-size: 100%;background-attachment: scroll;
            background-image: url('http://test.houjt.cn/userproject/cjytest/svg/img/10-23/1.gif');
            -webkit-tap-highlight-color: transparent;user-select: none;">
            <svg enable-background="new 0 0 750 1334" space="preserve"
                style="display: block; 100%;height:667px;vertical-align: top;background-position: 0% 0%;background-repeat: no-repeat;background-size: 100%;background-attachment: scroll;
                background-image: url('http://test.houjt.cn/userproject/cjytest/svg/img/10-23/1.jpg');
                -webkit-tap-highlight-color: transparent;"
                version="1.1" viewBox="0 0 750 1334" x="0px" xlink="http://www.w3.org/1999/xlink" xml=""
                xmlns="http://www.w3.org/2000/svg" y="0px">
                <animate attributeName="opacity" values="1;1;0" begin="touchstart" end="touchend" dur="1.5s"
                keyTimes="0;.3;1" fill="freeze" restart="whenNotActive"></animate>
                <animate attributeName="opacity" begin="touchend" to="1" dur="1.5s" fill="freeze" restart="whenNotActive"></animate>
            </svg>
        </section>

    把代码复制到135编辑器可以手机扫描生成的预览二维码码查看实际效果。

    P.S. 预览二维码要内容里有文字才能生成,单纯放svg标签而没有文字内容,135编辑器是生成不了预览二维码的,如果生成不了码,就在上面随便打几个字在试试

    参考链接:

    详细教你微信公众号正文页SVG交互开发

  • 相关阅读:
    centos7 yum 方式安装nginx
    在Windows系统下用命令把应用程序添加到系统服务
    WPF内置命令
    Json解析实例
    端口占用的问题
    WPF里的报警闪烁效果
    python类中的一些神奇方法
    python中交换两个变量值的方法
    lambda应用
    python函数不定长参数
  • 原文地址:https://www.cnblogs.com/haqiao/p/11731064.html
Copyright © 2011-2022 走看看