Magnific Popup 在小屏幕上不起作用

Magnific Popup not working in small screen

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

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

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

需要安装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/"
  ]
}