[英]Side By Side Two controls CSS
I want to Place two dx:ASPxDateEdit side by side as From Date and To Date How can i achieve我想并排放置两个 dx:ASPxDateEdit 作为 From Date 和 To Date 我怎样才能实现
<td>Issues Date:</td>
<td>
<dx:ASPxDateEdit ID="deFromDate" runat="server" Width="100px" AllowUserInput="False" Height="25px"
EditFormatString="dd-MMM-yyyy" DisplayFormatString="dd-MMM-yyyy" EditFormat="Custom"
Theme="Office2003Blue" ClientInstanceName="deFromDate" OnInit="deFromDate_Init">
</dx:ASPxDateEdit>
<dx:ASPxDateEdit ID="deToDate" runat="server" Width="100px" AllowUserInput="False" Height="25px"
EditFormatString="dd-MMM-yyyy" DisplayFormatString="dd-MMM-yyyy" EditFormat="Custom"
Theme="Office2003Blue" ClientInstanceName="deFromDate" OnInit="deFromDate_Init">
</dx:ASPxDateEdit>
You can add custom css to the datepickers with a class name like this to both of them:您可以将自定义 css 添加到日期选择器,并为它们两个都使用这样的类名:
Added css Class in在中添加了 css 类
<dx:ASPxDateEdit CssClass="date"
For Both dx:ASPxDateEdit
and Added bellow style
and its working as expected对于
dx:ASPxDateEdit
和添加的波纹管style
及其按预期工作
.datepicker{
display:inline-block;
}
or或者
<style>
.date {
float: left;
width: 50%;
}
</style>
Give <dx:ASPxDateEdit>
a class of .date
给
<dx:ASPxDateEdit>
一个.date
类
<dx:ASPxDateEdit
class="date"
ID="deToDate"
runat="server"
Width="100px"
AllowUserInput="False"
Height="25px"
EditFormatString="dd-MMM-yyyy"
DisplayFormatString="dd-MMM-yyyy"
EditFormat="Custom"
Theme="Office2003Blue"
ClientInstanceName="deFromDate"
OnInit="deFromDate_Init"
>
</dx:ASPxDateEdit>
and then give your class the property display:inline
然后给你的班级属性
display:inline
.date {
display: inline;
}
OR if you want to show it on separate lines.或者,如果您想在单独的行中显示它。
.date {
display: block;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.