JS code
$(document).ready(function() {
var Ah = $("#ishare-1").parent().innerHeight();//判断正文模块容器高度,ishare-1是我们插件模块的id,.parent().innerHeight指的是获取插件模块的父模块(正文模块)的高度
if ( Ah <= 250 ) {//判断正文模块容器高度低于250px像素,则在插件模块前面插入几个空白的行
$("#ishare-1").prepend("<p> </p><p> </p><p> </p>");}});Example:
《Share.js Share articles with one click》
In the zblog body, because the content of the body module of some articles in the zblog is too small, the height of the body module is low, and the container of the body module uses the css element overflow: hidden;, the QR code popped up by the WeChat button of the plug-in is partially hidden by the module container, so you can use the above method to solve this problem.
As shown in the following figure:







Add customer service qq.
netizens commented