【问题标题】:Magnific Popup not working in small screenMagnific Popup 在小屏幕上不起作用
【发布时间】:2016-08-17 09:45:46
【问题描述】:

我可以在 html 中使用 magnificPopup 指令作为属性。它可以在浏览器中运行,但不能在移动设备中运行。

angular.module('App')
        .directive('magnificPopup', function () {
            'use strict';

            return {
                restrict: 'A',
                link: function (scope, element, attrs) {
                    element.magnificPopup({
                        type: 'image'
                    });
                }
            };
        });

【问题讨论】:

    标签: html angularjs magnific-popup


    【解决方案1】:

    需要安装magnificpopup,在里面写命令

    bower install magnific-popup
    
    {
      "name": "magnific-popup",
      "main": [
        "dist/jquery.magnific-popup.js",
        "dist/magnific-popup.css"
      ],
      "dependencies": {
        "jquery": ">=1.8.0"
      },
      "ignore": [
        "node_modules/",
        "components/",
        "website/",
        "libs/"
      ]
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多