3 <body style=
"zoom: 1.1;">
4 <div id=
"test" style=
"height: 100px;">
5 <div id=
"red" style=
"width: 212px; height: 100px; background:red; float: left;"></div>
6 <div id=
"blue" style=
"height: 100px; background: blue; float: left;"></div>
9 var testContainer
= document
.getElementById('test');
10 var w
= document
.body
.getBoundingClientRect().width
;
11 w
= 913.0908660888672;
12 testContainer
.style
.width
= w
+ 'px';
13 testContainer
.children
[1].style
.width
= (w
- testContainer
.children
[0].getBoundingClientRect().width
) + 'px';