Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有身高100%的身体。还有两个子div。是否可以制作:
一旦 dom 准备好,你可以用 jQuery 来做到这一点
$(document).ready(function(){ $('#second').css({ 'height': ($('body').height() - $('#first').height()) + 'px' }); });