使用console输入div的高度

在chrome的console里面输出你需要的div的高

需要引用JQ.mini.js可以在本地引用,也可以CDN引用

1
2
3
4
5
6
7
8
9
10
<script src="http://libs.useso.com/js/jquery/2.1.1/jquery.min.js" type="text/javascript"></script>   
$(document).ready(function(){
        console.log("nav-height" + $(window).height());
        console.log(".nav:" + $(".nav").height());  
        console.log("nav:" + $("nav").height());  
        console.log("div3-height:" + $("#div3").height());  
    });
    </script>
   

Warning: Use of undefined constant wp_related_posts - assumed 'wp_related_posts' (this will throw an Error in a future version of PHP) in /var/www/html/afox/wp-content/themes/minty/functions.php on line 206

Warning: Use of undefined constant related_entries - assumed 'related_entries' (this will throw an Error in a future version of PHP) in /var/www/html/afox/wp-content/themes/minty/functions.php on line 207
分享到:

2 条评论

昵称

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  1. 鲜活

    chrome比较少用

    1. afox

      chrome 还是比较好用的