【发布时间】:2012-05-31 22:48:45
【问题描述】:
我有一个基本问题,我有一个菜单框,其中有两个部分,右文本部分和左文本部分,但我不能水平布局,如图所示,我希望两者都对齐在不使用负边距的情况下水平插入。
使用的 CSS:
<div id="Menu">
<div class="Menu-Left-Text">This<br />is the <br />section for<br />left text.</div>
<div class="Menu-Right-Text">This<br />is the <br />section for<br />right text.</div>
</div>
#Menu .Menu-Left-Text
{
margin-left: 9px;
padding-top: 9px;
font-size: 16pt;
font-family: 'ITC Avant Garde Gothic';
font-weight: bolder;
width: 189px;
}
#Menu .Menu-Right-Text
{
float:right;
font-family: 'Times New Roman' , Times, serif;
font-weight: bold;
}
【问题讨论】: