common.js 600 B

123456789101112131415161718
  1. //搜索安卓fixed兼容问题
  2. var client_h = document.documentElement.clientHeight;
  3. $(window).on("resize", function() {
  4. document.body.scrollHeight = client_h;
  5. $('.mui-content').css('height', client_h)
  6. $('.mui-content').css('position', 'relative')
  7. })
  8. //判断显示哪个空图标
  9. function netStyle(imgsrc){
  10. var nullHtml = document.createElement('div');
  11. nullHtml.setAttribute('class','nullData');
  12. var netBlockedimg = document.createElement('img');
  13. netBlockedimg.setAttribute('src',imgsrc);
  14. netBlockedimg.setAttribute('width','110');
  15. nullHtml.appendChild(netBlockedimg);
  16. return nullHtml;
  17. }