1
我在我的WordPress站点中有一个帖子。在这里,我加入这个代码片段:当我插入一个HTML片段时,头菜单和边栏菜单中断
<pre><code class="iframe-fragment"></code></pre>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script>
<script type="text/javascript">
$('.iframe-fragment').load('https://roboticsys.com/support/plugins/servlet/docs/c1001-d1003/RapidCode/_absolute_motion_8cs-example.html div.fragment', function(res, status, xhr){
$("a.code").each(function() {
var $this = $(this);
var _href = $this.attr("href");
$this.attr("href", 'https://roboticsys.com/support/plugins/servlet/docs/c1001-d1003/RapidCode/' + _href);
});
});
</script>
当我这个代码片段添加到我的职位,你可以看到它完美的工作,并展示了什么是应该。但是,主菜单不会像在主页上那样运行,并且侧边栏菜单不能再扩展。
这里是后我的工作:https://roboticsys.com/absolute-motion/
任何想法?
我将