我想获得祖父母的宽度而不是父母的宽度。用css可以吗?
这是我的html和css:
.outter {
position: relative;
width: 100%; // In my case is 900px
overflow: hidden;
height: 250px;
}
.inner {
position: absolute;
top: 0px;
left: 0px;
right: 0px;
width: 1000%; // In my case is 9000px
height: inherit;
transition: left 0.5s ease;
}
.outter .inner div {
float: left;
width: 50%; //How to get 450px instead of 4500px
}

<div class="outter">
<div class="inner">
<div>One</div>
<div>Two</div>
<div>Three</div>
</div>
</div>
&#13;