两个div标记在一行中 [英] Two divs tag in one row
本文介绍了两个div标记在一行中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
i希望在一行中放置两个div标签但是没有正确使用
以下是我的源代码
< asp:Panel ID =pnlcollapsiblerunat =serverheight =0CssClass =pnlsearchtool>
hello,
i want to place two div tags in one line but not getting properly
following is my source code
<asp:Panel ID="pnlcollapsible" runat="server" height="0" CssClass="pnlsearchtool">
注册日期(自):< asp:TextBox ID =txtfromdaterunat =server 宽度=100px>
注册日期(收件人):< asp:TextBox ID =txttodaterunat =serverWidth =100px>
PIS编号:< asp:TextBox ID =txtpisnumberrunat =serverWidth =100px> ;
患者姓名:< asp:TextBox ID =txtpatientnamerunat =serverWidth =100px>
以下是css
following is the css
.pnlsearchtool .pnl-top-region .pnllabelcontent .pnlsearchcontent
{
width:600px;
height:20px;
}
.pnlsearchtool .pnl-top-region .pnllabelcontent .pnlsearchcontent .pnlleftsearchcontent
{
width: 200px;
height:20px;
float:left;
}
.pnlsearchtool .pnl-top-region .pnllabelcontent .pnlsearchcontent .pnlrightsearchcontent
{
width: 200px;
height:20px;
float:right;
}
拜托,告诉我怎样才能制作两个div ag在一行...
please ,tell me how can i make two div tag in one line...
推荐答案
在下面的两个div中应用以下类
Apply the below class in that two div
.sameline {
display: inline;
}
希望这有帮助
Hope this helps
这篇关于两个div标记在一行中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文