使用JS实现,首先当然是引入JQuery库咯!
然后在内容页</head>前放如下内容:文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1454.html
<script type="text/javascript">文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1454.html
$(document).ready(function(){文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1454.html
$("#haojio img").each(function(){文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1454.html
$(this).wrap("<a href='[!--next.page--]'></a>");文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1454.html
});文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1454.html
});文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1454.html
</script>文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1454.html
haojio 表示包裹正文的一个DIV id文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1454.html
[!--next.page--]为 内容页下一页地址文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1454.html
模板代码:文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1454.html
<div class="post-content" id="haojio">[!--newstext--] </div>文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1454.html