I have the following html:
wookie1 5条回答 梦毁少年i (楼主) 2021-02-14 17:56 I got bored trying this and created a JS script based on jQuery to solve it. var t = $(".sub_container").width()/$(".floating").outerWidth(); $(".sub_container").width(parseInt(t) * $(".floating").outerWidth()); Demo 0 讨论(0) 查看其它5个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
I got bored trying this and created a JS script based on jQuery to solve it.
var t = $(".sub_container").width()/$(".floating").outerWidth(); $(".sub_container").width(parseInt(t) * $(".floating").outerWidth());
Demo