1, implement carousel on table, so float is used, and tr in each table is different. The height changes with the table. The parent uses overflow:hidden and is relatively positioned. Please tell me how to achieve high adaptability.
2. How to get the height of the currently displayed table during carousel? ? ?
.aircontent{
position: relative;
width: 980px;
min-height: 580px;
overflow: hidden;
}
.airlist{
position: absolute;
width: 2940px;
}
.airlist table{
float: left;
width: 980px;
}
<p class="aircontent">
<p class="airlist" style="left: 0px;">
<table >
It can be solved with JS.
.....You have already positioned it absolutely and naturally you cannot get the height.
The suggestion is still $('.aircontent')css({aircontent:$('.airlist').height() + 'px'}):