div外框 [英] div outside frame
问题描述
我有一个关于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 =resultaatsrc =/ fruits / apple.php?<?php print FRUIT;?> id =resultaatwidth =660height =250frameborder =0scrolling =automarginwidth =0>< / iframe>
<? } else {?>
<? }?>
< / div>
< div id =BB_Wrapper>
< / div>
< / div>
< div class =clearFloat>& nbsp;< / div>
< / div>
< / div>
提前感谢您!
没有。选择元素是原生UI控件。 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!!
Is there a way, when you press the alternative dropdown, that the div will be shown on top of the frame?
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).
这篇关于div外框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!