无法正确查看压光机控制

时间:2015-10-17 07:08:33

标签: html css asp.net

我正在使用z索引和位置:absoulte,我无法同时显示日历控件。歪曲由于它落后于按钮控制。附图screen shot of design issue

<div align="center">
<table>
<tr>
<td align="right">
<asp:Label ID="Label1" runat="server" Text="User :" ></asp:Label>
</td>
<td>
<asp:DropDownList ID="DDlUsers" runat="server" CausesValidation="true" AutoPostBack="false"  Width="180px">
                                        </asp:DropDownList>

</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="LblProject" runat="server" Text="Project :"></asp:Label>
</td>
<td>
<asp:DropDownList ID="DdlProject" runat="server"  Width="180px"></asp:DropDownList>

</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="date" runat="server" Text="Date :"></asp:Label>
</td>
<td>
   <asp:TextBox ID="txtDate" runat="server" Visible="True"  ToolTip="hello" Width="180px"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rfvtxtdate" runat="server" ErrorMessage="Required" ControlToValidate="txtDate" ValidationGroup="validate" Display="Dynamic"></asp:RequiredFieldValidator>
                <cc1:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtDate">
                   </cc1:CalendarExtender>
                </td>

</tr>


</table>
</div>

<div>
 <asp:Button Style="z-index: 102; left: 580px; position: absolute;
        top: 210px"  Width="100px" ID="Button1" runat="server" Text="Search" 
        onclick="BtnSearch_Click" ValidationGroup="validate" /> </div>

2 个答案:

答案 0 :(得分:2)

you can apply different colors for both search button and calendarcontrol.

答案 1 :(得分:0)

我添加了头脑中的风格来解决我的问题

<style type="text/css">
   .ajax__calendar_container { z-index : 1000 ; }
</style>