var px = $('#sampleDiv').css('marginBottom'); // px = '400px'
var num= parseInt( $('#sampleDiv').css('marginBottom') ); // num = 400
博客可能围绕jQuery以及margin-bottom、marginBottom展开,jQuery是前端开发常用库,margin相关属性用于页面布局样式设置,在前端页面设计中有重要作用。
var px = $('#sampleDiv').css('marginBottom'); // px = '400px'
var num= parseInt( $('#sampleDiv').css('marginBottom') ); // num = 400
424

被折叠的 条评论
为什么被折叠?