Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[疑难] 163K 今日头条错位 谁能帮我解决下。

[复制链接]
qiaobochao 发表于 2010-7-6 19:44:10 | 显示全部楼层 |阅读模式
本帖最后由 qiaobochao 于 2010-7-6 19:52 编辑

这几天用了下163k的模板,在资讯首页,出现错位的现象请问怎么解决啊,我看到有人问过这个问题,自己已经解决了,知道怎么解决的帮下忙 谢啦。  原先那位朋友提问的帖子:https://discuz.dismall.com/forum. ... ead&tid=1783765


截图: 1.jpg

涉及到的css: css.rar (10.42 KB, 下载次数: 380)

这个是我认为出错的css文件的部分。在源码中是class="bd"。。所以我这样以为,我也太不懂css帮忙看下是不是这里
  1. .hotRead .bd { border-left:1px solid #e6cd8d; border-right:1px solid #e6cd8d; padding:5px;}
  2. .hotRead .bd li { padding:0 50px 0 15px; background:url(../images/liIcon.gif) no-repeat 8px 9px; text-align:left; vertical-align:middle; line-height:20px; height:20px; overflow:hidden; position:relative;}
  3. .hotRead .bd li em { display:block; position:absolute; right:5px; top:0; text-align:right; color:#999; font-size:11px; width:45px; height:20px; line-height:20px; overflow:hidden;}
  4. .hotRead .bd li a { color:#666;}
  5. .hotRead .bd li a:hover { color:#f30;}
  6. .hotRead .ft { position:absolute; top:5px; right:8px; color:#d37b46;}
  7. .hotRead .ft a { color:#d37b46; text-decoration:underline;}
  8. .hotRead .ft a:hover { text-decoration:none;}
  9. .hotRead span.rc_bt { display:block; overflow:hidden; height:3px; background-position:0 -730px; _background-position-x:2px;}

  10. .topic { background-position:0 -210px; height:494px; position:relative;}
  11. .topic .hd { height:30px; text-indent:-999em; text-align:left; overflow:hidden;}
  12. .topic .time { position:absolute; right:36px; top:11px; width:100px; text-align:left; color:#888;font-size:12px;}
  13. .topic .bd h1 { font-size:18px; font-family:"黑体"; margin-top:5px; height:22px; line-height:22px; overflow:hidden; width:372px;}
  14. .topic .bd h1 a { color:#d00;}
  15. .topic .bd ul { padding:6px 0 8px;}
  16. .topic .bd ul li { position:relative; padding: 0 70px 0 50px; text-align:left; font-size:14px; line-height:26px; height:26px; overflow:hidden; vertical-align:middle;}
  17. .topic .bd ul li a { color:#1b629a;}
  18. .topic .bd ul li a:hover { color:#f30;}
  19. .topic .bd ul li em { display:block; position:absolute; right:15px; width:50px; top:0; line-height:26px; *line-height:30px; _line-height:26px; height:26px; font-size:12px; color:#999;}
复制代码
这个是此处错位的代码
  1. <!-- 主体 -->
  2.   <div id="content">
  3.     <div class="grid_01 clearfix">
  4.       <div class="col_main">
  5.         <div class="wapperMain">
  6.           <!-- 今日头条 -->
  7.           <div class="topic">
  8.             <div class="hd">今日头条</div>
  9.             <div class="bd">

  10.      
  11. <ul>
  12.               </ul>
  13.               <ul>
  14.               
  15.                 <li><a href="/viewnews-1703.html">古玩字画成行贿新手法 落马官员赃物热拍。</a><em>
  16. <a href="/category-1.html" target="_blank">新闻资讯</a>
  17. </em></li>
  18.    
  19.               </ul>
  20.               <ul>
  21.                  
  22.                 <li><a href="/viewnews-1713.html">高考分数线已定 广东山东占据一本最高分。</a><em>
  23. <a href="/category-1.html" target="_blank">新闻资讯</a>
  24. </em></li>
  25.    
  26.                 <li><a href="/viewnews-1712.html">菲律宾军警救出被绑一年半之久的中国公民...</a><em>
  27. <a href="/category-1.html" target="_blank">新闻资讯</a>
  28. </em></li>
  29.    
  30.                 <li><a href="/viewnews-1711.html">外交部就美科学家窃取中国国家机密等答问...</a><em>
  31. <a href="/category-1.html" target="_blank">新闻资讯</a>
  32. </em></li>
  33.    
  34.                 <li><a href="/viewnews-1710.html">印度全国罢工抗议油价</a><em>
  35. <a href="/category-1.html" target="_blank">新闻资讯</a>
  36. </em></li>
  37.    
  38.                 <li><a href="/viewnews-1709.html">徐威获7年徒刑,央视大火案二审维持原判。</a><em>
  39. <a href="/category-1.html" target="_blank">新闻资讯</a>
  40. </em></li>
  41.    
  42.               </ul>
  43.             </div>
  44.             <div class="time">
  45.         <SCRIPT LANGUAGE=JavaScript>
  46.        Str=new String(document.lastModified)
  47.          SubStrYear=Str.substring(6,10)
  48.           SubStrMon=Str.substring(0,2)
  49.          SubStrDate=Str.substring(3,5)
  50.           document.write(SubStrYear+"."+SubStrMon+"."+SubStrDate)
  51.            </SCRIPT>
  52.           </div>
  53.           </div>
  54.         </div>
  55.       </div>
  56.       <div class="col_sub">
  57.         <!-- 焦点轮换图 -->
复制代码
谢谢各位了、、  帮帮忙 还需要什么说下 我会马上传上来  最后再次感谢下。。 希望帮忙解决下
 楼主| qiaobochao 发表于 2010-7-6 19:53:16 | 显示全部楼层
  哪位好心人 帮帮忙啊
回复

使用道具 举报

 楼主| qiaobochao 发表于 2010-7-6 21:12:48 | 显示全部楼层
顶上去
回复

使用道具 举报

草上蚂蚱 发表于 2010-7-7 13:36:50 | 显示全部楼层
不是css的问题,我做的模板我很清楚,是这里有调用规则,看下函数就ok。
祝你好运。
回复

使用道具 举报

liqu12511 发表于 2012-1-30 17:10:34 | 显示全部楼层
你的是163正版的吗
回复

使用道具 举报

李渠 发表于 2012-2-4 18:28:50 | 显示全部楼层
本帖最后由 李渠 于 2012-3-25 21:30 编辑

看帖,学习中.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-6-9 20:54 , Processed in 0.105291 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表