找回密码
 注册
搜索
热搜: 回贴
  • 前程无忧官网首页 有什么好的平台可以
  • 最新的销售平台 互联网营销的平台有哪
  • 制作网页的基本流程 网页制作和网页设
  • 【帝国CMS】输出带序号的列表(数字排
  • 网站建设公司 三一,中联,极东泵车的
  • 织梦 建站 织梦网站模版后台怎么更改
  • 云服务官网 哪些网站有免费的简历模板
  • 如何建网站要什么条件 建网站要用什么
  • 吉林市移动公司电话 吉林省退休人员网
  • 设计类毕业论文 网站设计与实现毕业论
查看: 94|回复: 5

关于在不同分辨率下错位的问题,请路过的各位好汉进来看一下!谢谢!

[复制链接]
发表于 2009-5-25 04:18:23 | 显示全部楼层 |阅读模式 IP:江苏南通
关于在不同分辨率下错位的问题,请路过的各位好汉进来看一下!谢谢!
前两天朋友给了俺一个皮肤,小弟重新翻板了一下,感觉还不错.但在发现在不同的分辨率会出现轻微错位(小于等于1024*768的分辨率显示正常,反之会出现错位),虽然问题不大,但看着实再不爽!小弟我才疏学浅~百度了N次~~google了X次~~还是没找到解觉的办法!只好在此求助了~
如图:
1

2

网页地址:http://www.xiaobox.com/blog
CSS:
global.css
----------------------------------------
body{<br />
nbsp; &nbsp; &nbsp; &nbsp; font-size:12px;<br />
nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;margin:0px;<br />
nbsp; &nbsp; &nbsp; &nbsp; padding:0px;<br />
nbsp; &nbsp; &nbsp; &nbsp; text-align:center;<br />
nbsp; &nbsp; &nbsp; &nbsp; background: URL(allbg.jpg) no-repeat top center #000000;<br />
nbsp; &nbsp; &nbsp; &nbsp; color:#000;<br />
nbsp; &nbsp; &nbsp; &nbsp; font-family: Verdana, Arial, Helvetica, sans-serif;<br />
}<br />
<br />
<br />
<br />
<br />
img {max-width: 100%;height: auto;}<br />
select{font-family: Verdana, Arial}<br />
th{background:#D5CBBE;border-bottom:1px solid #795B50}
复制代码

layout.css
------------------------------------------
/*---主体样式---*/<br />
nbsp;&nbsp;#container{width:710px;padding:126px 0px 0px 143px;text-align:center;}<br />
nbsp;&nbsp;#FlashHead{position: absolute;width:100%;left:0px;}<br />
nbsp;&nbsp;/*---顶部样式---*/<br />
nbsp;&nbsp;#container #header{width:710px;margin:0 auto;height:0px;}<br />
#container #header{color:#000000;height:279px;margin:0 auto;padding:0px;font-size:11px;text-align:left;font-weight:lighter;}<br />
nbsp;&nbsp;<br />
nbsp;&nbsp;#container #header #blogname{display: none;}<br />
nbsp;&nbsp;#container #header #blogname #blogTitle{display: none;}<br />
nbsp;&nbsp;#container #header #menu{padding-left:20px;padding-top:250px;height:5px;}<br />
nbsp;&nbsp;#container #header #menu #Left{}<br />
nbsp;&nbsp;#container #header #menu #Right{}<br />
nbsp;&nbsp;#container #header #menu ul{list-style:none;margin:0;height:10px;float:left;} <br />
nbsp;&nbsp;#container #header #menu ul li{float:left;height:10px;}&nbsp; &nbsp;<br />
nbsp; &nbsp;.menuL{width:10px;padding:0px;background: url('arrow2.gif') no-repeat;}<br />
nbsp; &nbsp;.menuR{}&nbsp;&nbsp;<br />
nbsp; &nbsp;.menuDiv{width:10px;padding:0px;background: url('arrow2.gif') no-repeat;}/*---菜单分割线---*/<br />
nbsp; &nbsp;/*---内容样式---*/<br />
nbsp;&nbsp;#container #Tbody{width:710px;margin:0 auto;text-align:left;padding-top:0px;background: url('mainbg.jpg') repeat-y;}<br />
nbsp;&nbsp;/*---工具条--*/<br />
nbsp;&nbsp;#sidebar{float:left;width:200px;margin:1px;padding:5px 0px 0px 20px;text-align:center;color:#000;background:#000}<br />
nbsp;&nbsp;#innersidebar{background:#000;}<br />
nbsp;&nbsp;#sidebar-topimg{height:0px;overflow:hidden;}<br />
nbsp;&nbsp;#sidebar-bottomimg{height:0px;overflow:hidden;}<br />
nbsp;&nbsp;/*---工具箱样式--*/<br />
nbsp;&nbsp;.sidepanel{margin:0 auto!important;margin:0px;}<br />
nbsp;&nbsp;.Ptitle{margin:0px;height:18px;text-align:left;padding:8px 0px 0px 24px;font-weight:bold;font-size:12px;color:#000000}&nbsp;&nbsp;<br />
nbsp;&nbsp;.Pcontent{text-align:left;color:#000;padding-left:12px;padding-top:4px;padding-bottom:4px;}&nbsp;&nbsp;<br />
nbsp;&nbsp;.Pfoot{margin:0px 0px 8px 0px !important;margin:-2px 0px 3px 0px;height:8px!important;height:6px;}&nbsp;&nbsp;<br />
nbsp;&nbsp;/*---主内容--*/ <br />
nbsp;&nbsp;#mainContent{float:left;margin-left:-260px;width:100%;text-align:center;}<br />
nbsp;&nbsp;#innermainContent{overflow:visible;margin-left:270px;}<br />
nbsp;&nbsp;#mainContent-topimg{height:0px;width:0px;overflow:hidden;}<br />
nbsp;&nbsp;#mainContent-bottomimg{height:0px;width:0px;overflow:hidden;}<br />
nbsp;&nbsp;.content-width{margin:auto;}/*--主内容元素的全局宽度--*/<br />
nbsp;&nbsp;/*---主内容页数--*/<br />
nbsp;&nbsp;.pageContent{margin:0 auto;padding:3px;text-align:left;height:18px;} <br />
nbsp;&nbsp;.NavTitle{float:left;font-weight:bold;}<br />
nbsp;&nbsp;.page{padding-right:5px;height:18px;}<br />
nbsp;&nbsp;.page ul{list-style:none;margin:0px;padding:0px} <br />
nbsp;&nbsp;.page ul li{float:left;padding:0px 3px 0px 3px;} <br />
nbsp;&nbsp;.page ul li.PageL {width:9px;height:16px;}<br />
nbsp;&nbsp;.page ul li.PageR {width:9px;height:16px;}<br />
nbsp;&nbsp;.PageLbutton{background:url('../../images/BttnLeft.gif') 0px 0px;width:9px;height:16px;display:block;}<br />
nbsp;&nbsp;.PageRbutton{background:url('../../images/BttnRight.gif') 0px 0px;width:9px;height:16px;display:block;}<br />
nbsp;&nbsp;/*---内容框--*/<br />
nbsp;&nbsp;.Content{margin:0 auto;padding-top:15px}&nbsp; &nbsp; <br />
nbsp;&nbsp;/*---日志标题框--*/<br />
nbsp;&nbsp;.Content-top{spadding:2px 2px 2px 44px !important;padding:10px 2px 2px 10px; color:#000;text-align:left;margin-bottom:2px;}<br />
nbsp;&nbsp;.Content-top .ContentLeft{width:0px;float:left;}<br />

nbsp;&nbsp;.Content-top .ContentRight{width:0px;float:right;}<br />
nbsp;&nbsp;.Content-top .ContentTitle{font-size:14px;color:#CC0000;padding-bottom:4px;margin:0px}<br />
nbsp;&nbsp;.Content-top .ContentAuthor{color:#666;font-size:11px;padding-top:4px;padding-left:3px;border-top:1px solid #DBDBD0;margin:0px;font-weight:100;} <br />
nbsp;&nbsp;/*---日志内容框--*/<br />
nbsp;&nbsp;.Content-body{margin:10px auto;overflow:hidden;text-align:left;width:96%;line-height:150%;color:#5B5B5B}<br />
nbsp;&nbsp;/*---日志内容底部--*/<br />
nbsp;&nbsp;.Content-bottom{text-align:right;background:url(dot.png) repeat-x;height:30px;padding:3px 2px 20px 2px;}<br />
nbsp;&nbsp;.Content-bottom .ContentBLeft{width:0px;float:left;}<br />
nbsp;&nbsp;.Content-bottom .ContentBRight{width:0px;float:right;}&nbsp;&nbsp;<br />
<br />
nbsp;&nbsp;/*---日志其他信息--*/<br />
nbsp;&nbsp;.Content-Info {margin:3px 4px 6px 4px;padding:0px}<br />
nbsp;&nbsp;.Content-Info .InfoAuthor{text-align:left}<br />
nbsp;&nbsp;.Content-Info .InfoOther{float:right;text-align:right;}<br />
nbsp;&nbsp;<br />
nbsp;&nbsp;/*---UBB框--*/ <br />
nbsp;&nbsp;.UBBPanel{background:#F5FAFE;border-left:2px solid #109AE9;overflow:auto;width:450px;}<br />
nbsp;&nbsp;.UBBTitle{font-weight:bold;padding:4px;background:#C0E3F7 url(bt.gif) right 0px no-repeat;border-bottom:1px dotted #109AE9}<br />
nbsp;&nbsp;.UBBTitle img {display:none;}<br />
nbsp;&nbsp;.UBBContent{padding:6px;line-height:160%;}<br />
nbsp;&nbsp;.UBBContent TEXTAREA {width:430px;border:1px solid #8DC112;margin-bottom:2px;font-size:12px}<br />
nbsp;&nbsp;<br />
nbsp;&nbsp;/*--评论框--*/<br />
nbsp;&nbsp;.comment{text-align:left;margin:0px 0px 15px 0px;}<br />
nbsp;&nbsp;.commentinfo{font-size:11px;}<br />
nbsp;&nbsp;.commenttop{padding:4px;background:#E2F3FD;border-top:1px solid #2DA5F2}<br />
nbsp;&nbsp;.commenttop a:link,.commenttop a:visited{color:#115380;}<br />
nbsp;&nbsp;.commentcontent{padding:10px;line-height:140%;overflow:hidden;background:#fff;border-bottom:1px solid #000000;margin-bottom:-1px}<br />
nbsp;&nbsp;.commentcontent .UBBPanel {width:400px}<br />
nbsp;&nbsp;.commentcontent .UBBTitle {background:#C0E3F7 url(bt1.gif) right 0px no-repeat;}<br />
nbsp;&nbsp;:link.UBBLink,:visited.UBBLink{font-size:11px;font-family:verdana;}<br />
nbsp;&nbsp;<br />
nbsp;&nbsp;<br />
nbsp;&nbsp;/*---信息框--*/<br />
nbsp;&nbsp;#MsgContent{border:1px solid #DBDBD0;width:430px;padding:1px; background:#fff;margin:0px 0px 0px 6px;float:left;}<br />
nbsp;&nbsp;#MsgContent #MsgHead{background:#000000;padding:4px;text-align:center;font-weight:lighter;color:#fff}<br />
nbsp;&nbsp;#MsgContent #MsgBody{padding:4px;line-height:180%;}<br />
<br />
nbsp;&nbsp;.LDialog{border:1px solid #795B50;margin:3px auto;padding:1px;}<br />
nbsp;&nbsp;.LDialog .LHead{background:#BBA097;padding:1px;color:#fff;text-align:center;font-weight:bold;}<br />
nbsp;&nbsp;.LDialog .LBody{padding:4px;line-height:200%;}<br />
<br />
<br />
/*信息框图标以及文字*/<br />
nbsp; &nbsp;.MessageText{height:76px;margin-right:18px;margin-top:2px}<br />
nbsp; &nbsp;.MessageIcon{background:url(Message.jpg) no-repeat;width:48px;height:72px;float:left;}<br />
nbsp; &nbsp;.ErrorIcon{background:url(Error.jpg) no-repeat;width:48px;height:72px;float:left;}<br />
nbsp; &nbsp;.WarningIcon{background:url(Warning.jpg) no-repeat;width:48px;height:72px;float:left;}&nbsp; &nbsp;<br />
nbsp; &nbsp;.QuestionIcon{background:url(vQuestion.jpg) no-repeat;width:48px;height:72px;float:left;}<br />
nbsp; &nbsp;<br />
nbsp;&nbsp;/*---底部样式---*/<br />
nbsp;&nbsp;#container #foot{background:url(foot.jpg);margin:0px;padding:0px 0px 0px 10px;height:140px;text-align:left}<br />
nbsp;&nbsp;#container #foot p{margin:0px}<br />
nbsp;&nbsp;/*---文件上传框样式---*/<br />
nbsp;&nbsp;.attachmentBody{<br />
nbsp;&nbsp;margin:0px;font-size:12px;background:#fff<br />
nbsp;&nbsp;}
复制代码

崇拜这里的牛人很久啦~以至于小弟一潜水,从不敢出来撒野~
这次还请走过路过的大牛进来帮帮忙~感激不尽!
发表于 2009-11-13 00:05:02 | 显示全部楼层 IP:日本
大Shi的话真如“大音希声扫阴翳”,犹如“拨开云雾见青天”,使我等网民看到了希望,看到了未来!
回复

使用道具 举报

发表于 2010-2-1 16:05:10 | 显示全部楼层 IP:宁夏固原
是转的把 ,说得不错 再看一次
回复

使用道具 举报

发表于 2010-2-3 17:05:04 | 显示全部楼层 IP:澳大利亚
能够在如此精彩的帖子后面留下自己的网名是多么骄傲的一件事啊
回复

使用道具 举报

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

本版积分规则

QQ|小黑屋|最新主题|手机版|微赢网络技术论坛 ( 苏ICP备08020429号 )

GMT+8, 2024-9-29 19:16 , Processed in 0.366983 second(s), 15 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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