为什麼一个<ul>标签,设了margin-left值,在firefox里面可以看到它离左边的距离
可为什麼在ie里面义没距离了了,整体的div也设置了text-align:left,其它的<ul>设了都有效果,唯独第一个不可以.真是太奇怪了!求救!!!!!!!!!!!...
可为什麼在ie里面义没距离了了, 整体的div也设置了text-align:left,其它的<ul>设了都有效果,唯独第一个不可以.真是太奇怪了!
求救!!!!!!!!!!!1
代码如下:
<div id="memberinfocompany">
<ul id="first">
<li>First Name:</li>
<li><input id="miFirstName" name="miFirstName" value="gu" maxlength="50" type="text"></li>
<li>*</li>
</ul>
<ul id="last">
<li>Last Name:</li>
<li><input id="miLastName" name="miLastName" value="vgu" maxlength="50" type="text"></li>
<li>*</li>
</ul>
<ul id="gender">
<li>Gender:</li>
<li>
<input id="miGender2" name="miGender" value="2" type="radio">Gents
<input id="miGender3" name="miGender" checked="checked" value="3" type="radio">Ladies
</li>
</ul>
</div>
"CSS"
#memberinfocompany{
background-color:#F6FAEB;
border:1px solid #2B982A;
overflow:hidden;
padding:20px 10px;
margin:0 5px 0 0;
text-align:left;
font-size:15px;
}
#memberinfocompany ul{
margin-bottom:10px;
overflow:hidden;
clear:both;
}
#memberinfocompany ul li{
float:left;
}
ul#first{
margin-left:79px;
width:400px;
}
ul#last{
margin-left:79px;
width:400px;
}
ul#gender{
margin-left:102px;
width:400px;
}
input#miFirstName,input#miLastName{
width:250px;
margin-left:8px;
} 展开
求救!!!!!!!!!!!1
代码如下:
<div id="memberinfocompany">
<ul id="first">
<li>First Name:</li>
<li><input id="miFirstName" name="miFirstName" value="gu" maxlength="50" type="text"></li>
<li>*</li>
</ul>
<ul id="last">
<li>Last Name:</li>
<li><input id="miLastName" name="miLastName" value="vgu" maxlength="50" type="text"></li>
<li>*</li>
</ul>
<ul id="gender">
<li>Gender:</li>
<li>
<input id="miGender2" name="miGender" value="2" type="radio">Gents
<input id="miGender3" name="miGender" checked="checked" value="3" type="radio">Ladies
</li>
</ul>
</div>
"CSS"
#memberinfocompany{
background-color:#F6FAEB;
border:1px solid #2B982A;
overflow:hidden;
padding:20px 10px;
margin:0 5px 0 0;
text-align:left;
font-size:15px;
}
#memberinfocompany ul{
margin-bottom:10px;
overflow:hidden;
clear:both;
}
#memberinfocompany ul li{
float:left;
}
ul#first{
margin-left:79px;
width:400px;
}
ul#last{
margin-left:79px;
width:400px;
}
ul#gender{
margin-left:102px;
width:400px;
}
input#miFirstName,input#miLastName{
width:250px;
margin-left:8px;
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询