Home > Web Front-end > HTML Tutorial > div在其他控件前端显示_html/css_WEB-ITnose

div在其他控件前端显示_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 09:35:29
Original
1145 people have browsed it

教师查找后面搜索到的信息在div里面,下面的那个框是listbox控件,如何让div在listbox控件前端显示


回复讨论(解决方案)

你设置下2个的Z-INDEX试试。

修改z-index

不行啊,还有没有别的方法啊!

你这是IE6?
用 iframe 有点麻烦, 
用 jquery.bgiframe吧, 具体百度搜索下

wan
[img=http://wpa.qq.com/pa?p=1:79608028:1][/img]

楼上,我弄了,但还是不行!很纠结啊!

不是吧, 这个本来就是针对那个而设计的呀, 
你用FF看看效果可以不呀, 
如果只是IE6再想其它办法

谁能帮我解决啊!

你把控制它们的样式发下。。。

<td style="height: 80px;">                    <asp:Label ID="Label1" runat="server" Text="教师查找"></asp:Label>                </td>                <td>                    <asp:TextBox ID="txtName" runat="server" Width="80px"  onkeyup='getSearchKeys()'></asp:TextBox>                    <%-- <input type='text' id='txtName' style="width:80px"  onkeyup='getSearchKeys()'  />--%>                    <div id='divShow' style=" clear:inherit;position: absolute; z-index: 9999; width: 80px; height: auto;                         display: none; background-color: White; font-size: 12px; border: 1px solid #ddd" >                                            <iframe  style="position:absolute;z-index:-1;width:100%;height:100%;top:0;left:0;scrolling:no;" frameborder="0" src="about:blank" id="dialog"></iframe>                    </div>                </td>
Copy after login

asp:ListBox ID="lbxSource" runat="server" Height="200px" SelectionMode="Multiple"                         Width="150px" ForeColor="Black" Rows="20" Font-Size="12px" AutoPostBack="true">                    </asp:ListBox>
Copy after login

可以结贴了!

问题解决了,感谢大家!我这样改的height:70px; overflow:auto; visibility:hidden;

感谢ynn0705

好啊!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template