div外框
我有一个关于 div 和框架的问题。 当框架内有下拉列表时,按下下拉列表时,下拉列表将显示在框架外部。我有一个替代下拉列表(它几乎具有相同的属性,但我必须将元素彼此相邻显示),因此元素显示在 div 中。
我的问题。 有没有办法,当您按下替代下拉菜单时,div 将显示在框架顶部?为了更清楚,我画了一张图。 1 & 2是我的例子。
1 是当我添加具有黄色 div 的高度和宽度的框架时。在2中:我使用了更大的高度,但它显示在下一帧的后面。 我还尝试将框架 2 放置在框架 1 的顶部,但随后我无法在替代下拉列表中选择元素。
这些下拉菜单的唯一解决方案是当我使用框架时,没有选择说:使用 div。
我希望有人知道如何解决这个问题?
这是我现在使用的代码:
<div id="site_content">
<div class="site_Wrapper">
<div id="test">
<div id="content">
<?php if (substr(fruit,0,4) == "apple"){ ?>
<iframe name="resultaat" src="/fruits/apple.php?<?php print FRUIT; ?>" id="resultaat" width="660" height="250" frameborder="0" scrolling="auto" marginwidth="0"></iframe>
<? } else { ?>
<iframe name="resultaat" id="resultaat" src="/fruits/empty.php" width="660" height="250" frameborder="0" scrolling="no" marginwidth="0"></iframe>
<? } ?>
</div>
<div id="BB_Wrapper">
<iframe name="vulin" id="vulin" src="/fruits/healty.php" width="280" height="370" frameborder="0" scrolling="no" marginwidth="0"></iframe>
</div>
</div>
<div class="clearFloat"> </div>
</div>
</div>
提前非常感谢!
I have a question about divs and frames.
When you have a dropdown list inside a frame, and you press the dropdown, the dropdown will be shown outside your frame. I have an alternative dropdown (it almost has the same property's but I had to display the elements next to each other), so the elements are shown in a div.
My question.
Is there a way, when you press the alternative dropdown, that the div will be shown on top of the frame? To be more clear, I made a drawing.
1 & 2 are the examples I had.
1 is when I added the frame with the height and width of the yellow div. In 2: I used a larger height, but it is shown behind the next frame.
I also tried to place frame 2 on top of frame 1, but then I could not select an element in my alternative dropdown.
The only solution with those dropdowns was when I worked with frames, it's no option to say: work with divs.
I hope there is someone who has an idea how to solve this problem?
This is the code I use now:
<div id="site_content">
<div class="site_Wrapper">
<div id="test">
<div id="content">
<?php if (substr(fruit,0,4) == "apple"){ ?>
<iframe name="resultaat" src="/fruits/apple.php?<?php print FRUIT; ?>" id="resultaat" width="660" height="250" frameborder="0" scrolling="auto" marginwidth="0"></iframe>
<? } else { ?>
<iframe name="resultaat" id="resultaat" src="/fruits/empty.php" width="660" height="250" frameborder="0" scrolling="no" marginwidth="0"></iframe>
<? } ?>
</div>
<div id="BB_Wrapper">
<iframe name="vulin" id="vulin" src="/fruits/healty.php" width="280" height="370" frameborder="0" scrolling="no" marginwidth="0"></iframe>
</div>
</div>
<div class="clearFloat"> </div>
</div>
</div>
Thank you so much in advance!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不。选择元素是本机 UI 控件。 Div 元素只是页面的一部分。
最接近的方法是在框架页面中有一个重复的 div,并将它们非常非常仔细地排列起来。 (那样就是疯狂)。
No. Select elements are native UI controls. Div elements are just part of the page.
The closest you could come would be to have a duplicate div in the framed page and line them up very very carefully. (That way lies madness).