简体   繁体   English

为什么自托管时Mobify无法正常工作?

[英]Why would Mobify not work when self-hosted?

I have a website that uses Mobify to show a responsive layout. 我有一个使用Mobify显示响应式布局的网站。 Mobify is shutting down its services. Mobify正在关闭其服务。 So, I am trying to move files from Mobify to my own site so that my responsive layout will continue to work. 因此,我试图将文件从Mobify移到我自己的站点,以便我的响应式布局将继续起作用。 This includes the mobify.js file, the a.js file, the style.css, and fonts.css . 这包括mobify.js文件,a.js文件,style.css和fonts.css。

I'm able to get my mobile content to appear. 我可以显示我的移动内容。 However, my mobile CSS stops working. 但是,我的移动CSS停止工作。 The files I'm hosting are the same files from the Mobify site. 我托管的文件与Mobify网站中的文件相同。 All I'm doing is changing the reference from Mobify's site to where I have them hosted. 我正在做的就是将参考从Mobify的站点更改为托管它们的位置。 Is there a reason this wouldn't work? 是否有理由不起作用?

Mobify.me doesn't generate a Mobify.js file. Mobify.me不会生成Mobify.js文件。 It sounds like you are using Mobify Studio. 听起来您正在使用Mobify Studio。 Mobify doesn't have plans to shut down Mobify Studio yet. Mobify还没有关闭Mobify Studio的计划。

Let me know if there's anything else I can help with! 让我知道我还有什么可以帮助的!

Kind regards, 亲切的问候,

Eric 埃里克

The error I was having was for Mobify Studio. 我遇到的错误是因为Mobify Studio。 My solution was to place all files in the same folder: the mobify.js file, the a.js file, the style.css, and fonts.css. 我的解决方案是将所有文件放在同一个文件夹中:mobify.js文件,a.js文件,style.css和fonts.css。 I had placed the css files in a "stylesheets" folder originally (separate from the js files), and something in the JS didn't like that. 我最初将css文件放置在“ stylesheets”文件夹中(与js文件分开),而JS中的某些内容与此不同。 Putting all stylesheets in the same folder as the js files solved it. 将所有样式表与js文件放在同一文件夹中即可解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM