The jq mask layer completes covering the original page

When making a pop-up box, if the mask layer below wants to cover the original page, you only need to use jq to get the height of the page and set it as the height of the mask layer.

$("#bg").css('height',$(document).height()+'px');

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324478562&siteId=291194637