如何取消li前的原点,让我的图文横向排列
时间:2010-09-06
来源:互联网
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>无标题文档</title> <style type="text/css"> <!-- #rightBlock { width:308px;border:1px #ADADAD solid;over-flow:hidden;float:left; } #rightBlock #blocktop { width:306px;height:18px;background-color:#ccc;padding-top:3px;margin-bottom:10px;float:left;text-indent:20px;font-weight:bold;font-color:#000;border:1px solid #fff; } #rightBlock #blockbottom { width:288px;margin-left:0px;margin-bottom:7px;text-align:left;clear:both;line-height:23px; } #blockbottom li { list-style-type:none; width:134px; float:left; } .pe_u_thumb { width:120px; height:78px; } .pe_u_thumb_title { width:120px; height:30px; } --> </style> </head> <body> <div id="rightBlock"> <div id="blocktop">热门图文</div> <div id="blockbottom"> <!--热门图文列表开始--> <li> <div class="pe_u_thumb"><a href="/18/19.html" target="_blank"><img src="/UploadFiles/info/2010/9/201009031659090231_S.jpg" alt="宾利BENTLEY Supersports Convertible台湾销售1980万元起" width="130" height="84" border="0"></a></div> <div class="pe_u_thumb_title"><a href="/18/19.html" target="_blank">宾利BENTLEY Supers…</a><br>…</div> </li> <li> <div class="pe_u_thumb"><a href="/18/18.html" target="_blank"><img src="/UploadFiles/info/2010/9/201009031659083172_S.jpg" alt="全球高端SUV大混战 宝马X1力压奥迪Q5" width="130" height="84" border="0"></a></div> <div class="pe_u_thumb_title"><a href="/18/18.html" target="_blank">全球高端SUV大混战 …</a><br>…</div> </li> </div> </div> </body> </html>
提示:您可以先修改部分代码再运行
现在图文不是一行两列,我的本意是图文一行两列,现在图文前还有个小圆点,不想显示小圆点,为什么设置了list-style-type:none;也不起作用呢?提示:您可以先修改部分代码再运行
奇怪奇怪,怎么在我的机器上效果和在论坛上运行的效果不一样?
[ 本帖最后由 batistutafans 于 2010-9-6 17:13 编辑 ]
附件

2010-9-6 17:13
作者: batistutafans 发布时间: 2010-09-06
li是要套ul的.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>无标题文档</title> <style type="text/css"> <!-- #rightBlock { width:308px;border:1px #ADADAD solid;over-flow:hidden;float:left; } #rightBlock #blocktop { width:306px;height:18px;background-color:#ccc;padding-top:3px;margin-bottom:10px;float:left;text-indent:20px;font-weight:bold;font-color:#000;border:1px solid #fff; } #rightBlock #blockbottom { width:288px;margin-left:0px;margin-bottom:7px;text-align:left;clear:both;line-height:23px; } #blockbottom li { list-style-type:none; width:134px; float:left; } .pe_u_thumb { width:120px; height:78px; } .pe_u_thumb_title { width:120px; height:30px; } --> </style> </head> <body> <div id="rightBlock"> <div id="blocktop">热门图文</div> <div id="blockbottom"> <!--热门图文列表开始--> <ul> <li> <div class="pe_u_thumb"><a href="/18/19.html" target="_blank"><img src="/UploadFiles/info/2010/9/201009031659090231_S.jpg" alt="宾利BENTLEY Supersports Convertible台湾销售1980万元起" width="130" height="84" border="0"></a></div> <div class="pe_u_thumb_title"><a href="/18/19.html" target="_blank">宾利BENTLEY Supers…</a><br>…</div> </li> <li> <div class="pe_u_thumb"><a href="/18/18.html" target="_blank"><img src="/UploadFiles/info/2010/9/201009031659083172_S.jpg" alt="全球高端SUV大混战 宝马X1力压奥迪Q5" width="130" height="84" border="0"></a></div> <div class="pe_u_thumb_title"><a href="/18/18.html" target="_blank">全球高端SUV大混战 …</a><br>…</div> </li> </ul> </div> </div> </body> </html>
提示:您可以先修改部分代码再运行
提示:您可以先修改部分代码再运行
作者: rao3324180 发布时间: 2010-09-06
原来如此,加了<ul>以后圆点倒是消失了,这个一行两列还是没有出来,运行效果那里现在真正变成一行一列了。
[ 本帖最后由 batistutafans 于 2010-9-6 17:21 编辑 ]
111.jpg (12.42 KB)
[ 本帖最后由 batistutafans 于 2010-9-6 17:21 编辑 ]
附件

2010-9-6 17:21
作者: batistutafans 发布时间: 2010-09-06
加 float:left;
作者: 870527 发布时间: 2010-09-06
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28