开发者

Problem with overlay of 2 elements

开发者 https://www.devze.com 2023-03-19 11:31 出处:网络
I have the following code: <div style=\"height:500px\"> <ul style=\"height开发者_StackOverflow中文版: 1000px\">

I have the following code:

<div style="height:500px">
<ul style="height开发者_StackOverflow中文版: 1000px">
....
</ul>
</div>

I am using the UL as Jquery carousel. My problem is that the div won't act as a 500px window above that UL carousel, and it seems like its streching the DIV so it will also fit the 1000px.

How can this be solved?

thanks


try <div style="height:500px; overflow: hidden">


Its hard to tell whats happening aside those two code lines but you would also need to set in the css that the div should have overflow hidden so that no content will flow over the height

0

精彩评论

暂无评论...
验证码 换一张
取 消