设置了position:absolute后怎么搞也没法撑开父元素,只好用js了: var g = function (id) {return document.getElementById(id);} g("sidebar").offsetHeight < g("content").offsetHeight ? g("sidebar").style.height = g("content").offsetHeight + "px" : "";
举报
0/150
提交
取消
设置了position:absolute后怎么搞也没法撑开父元素,只好用js了: var g = function (id) {return document.getElementById(id);} g("sidebar").offsetHeight < g("content").offsetHeight ? g("sidebar").style.height = g("content").offsetHeight + "px" : "";
2014-07-06
举报