【问题标题】:Implement JSX in Wordpress在 Wordpress 中实现 JSX
【发布时间】:2019-02-28 19:21:47
【问题描述】:

我想在我的 wordpress 网站上实现 JSX Graph,并按照您推荐的方式安装插件。但是,如果您查看网站并向下滚动,您只会看到 JSXGraph 小程序的框架,但看不到网格等。那么我该怎么做才能正确显示呢?代码如下:

<p><script type="text/javascript"><br />
 var board = JXG.JSXGraph.initBoard('box', {boundingbox: [-10, 10, 10, -10], axis:true});<br />
</script></p>

在头脑中

 <link rel="stylesheet" type="text/css" href="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraph.css" />
 <script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraphcore.js"></script>

【问题讨论】:

    标签: wordpress jsxgraph


    【解决方案1】:

    糟糕,这是过时的信息。由于您的 wordpress 使用 https 运行,因此 JSXGraph 也必须使用 https 包含在内。请从以下链接中删除http::

    <link rel="stylesheet" type="text/css" href="//jsxgraph.uni-bayreuth.de/distrib/jsxgraph.css" />
    <script type="text/javascript" src="//jsxgraph.uni-bayreuth.de/distrib/jsxgraphcore.js"></script>
    

    最好的祝愿, 阿尔弗雷德

    【讨论】:

      猜你喜欢
      • 2015-04-09
      • 2014-04-03
      • 1970-01-01
      • 2021-05-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-14
      • 2012-02-24
      相关资源
      最近更新 更多