ul li内上端出现的空隙怎么用css去掉
HTML代码如下:<ulclass="questions"><liclass="question"><divclass="colquestion-text"><span>...
HTML代码如下:
<ul class="questions">
<li class="question">
<div class="col question-text">
<span>
Which novel opens with, "Happy families are all alike; every unhappy family is unhappy in its own way"?
</span>
</div>
<div class="col question-button">
<input type="button" onclick="show()" value="详情"/>
<input type="button" value="删除"/>
<input type="button" value="修改"/>
</div>
</li>
<li class="question">
<div class="col question-text">
<span>
Which novel opens with, "Happy families are all aliway"?
</span>
</div>
<div class="col question-button">
<input type="button" value="详情"/>
<input type="button" value="删除"/>
<input type="button" value="修改"/>
</div>
<div class="question_answer">
<ul style="margin:0px;padding-left:0px;">
<li style="list-style-type:disc;list-style-position: inside;padding-left:0px;margin-left:0px;">11111</li>
<li style="list-style-type:disc;list-style-position: inside;">22222</li>
<li style="list-style-type:disc;list-style-position: inside;">33333</li>
</ul>
</div>
</li>
</ul>
百度真垃圾,太长写不下,又补不了,就当我没提吧 展开
<ul class="questions">
<li class="question">
<div class="col question-text">
<span>
Which novel opens with, "Happy families are all alike; every unhappy family is unhappy in its own way"?
</span>
</div>
<div class="col question-button">
<input type="button" onclick="show()" value="详情"/>
<input type="button" value="删除"/>
<input type="button" value="修改"/>
</div>
</li>
<li class="question">
<div class="col question-text">
<span>
Which novel opens with, "Happy families are all aliway"?
</span>
</div>
<div class="col question-button">
<input type="button" value="详情"/>
<input type="button" value="删除"/>
<input type="button" value="修改"/>
</div>
<div class="question_answer">
<ul style="margin:0px;padding-left:0px;">
<li style="list-style-type:disc;list-style-position: inside;padding-left:0px;margin-left:0px;">11111</li>
<li style="list-style-type:disc;list-style-position: inside;">22222</li>
<li style="list-style-type:disc;list-style-position: inside;">33333</li>
</ul>
</div>
</li>
</ul>
百度真垃圾,太长写不下,又补不了,就当我没提吧 展开
5个回答
展开全部
你的虽然内联了样式,外边距,内边距都为0,但是你没设置div的内边距div的内边距设置0就没有空隙了!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
css简写的话应该是:
ul,li{margin:0px;padding:0px;list-style-type:none}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
这应该是个bug,li 4像素bug你可以百度一下试试
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询