royallin
非常火狐
非常火狐
  • UID29014
  • 注册日期2009-05-31
  • 最后登录2016-12-07
  • 发帖数668
  • 经验46枚
  • 威望0点
  • 贡献值32点
  • 好评度0点
  • 社区居民
阅读:2121回复:2

论坛网页被撑宽

楼主#
更多 发布于:2011-06-20 11:37
论坛网页被撑宽这个问题很久了。
有的帖子内容很长,作者也不换行。论坛也不会自动换行。
有的就是被图像撑宽了。
其他人浏览的时候就很麻烦了,老是要拖来拖去。
每次遇到都要用JS来调整也不是长久之法,希望论坛能修复好。
还有的就是本论坛的cookies会丢失。
javascript:(function(){function%20t(f){a=d.createNodeIterator(d,1,f,false);while(a.nextNode()){}}var%20d=document;t(function(e){x=e.offsetLeft;l=e.offsetParent;while(l!=null){x+=l.offsetLeft;l=l.offsetParent}var%20w=d.documentElement.clientWidth-x;var%20s=e.style;if(s.marginLeft)w-=s.marginLeft;if(s.marginRight)w-=s.marginRight;if(s.paddingLeft)w-=s.paddingLeft;if(s.paddingRight)w-=s.paddingRight;if(s.borderSize)w-=s.borderSize;w-=d.defaultView.innerWidth-d.documentElement.offsetWidth;if(e.tagName=='IMG'){h=e.clientHeight*w/e.clientWidth;s.maxHeight=h}s.maxWidth=w+'px'})})();
huhuhu
火狐狸
火狐狸
  • UID34430
  • 注册日期2010-11-04
  • 最后登录2013-11-28
  • 发帖数119
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 社区居民
1楼#
发布于:2011-06-20 11:37
自己改css吧,一劳永逸。
@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("www.firefox.net.cn"), domain("www.mozcn.org") {
td.row1, td.row2 { white-space: normal !important; }
TD[class^="row"] TD[height="100%"] img {max-width: 600px !important;}
TD[class^="row"] TD[height="100%"] img:active {max-width: 100% !important;}
span[class="postbody"] img {max-width: 600px !important;}
span[class="postbody"] img:active {max-width: 100% !important;}
/* Show magnifier cursor when hovering on content img, non-specific for scaled-down img */
/*TD[class^="row"] TD[height="100%"] img {cursor: -moz-zoom-in !important;}*/
}
royallin
非常火狐
非常火狐
  • UID29014
  • 注册日期2009-05-31
  • 最后登录2016-12-07
  • 发帖数668
  • 经验46枚
  • 威望0点
  • 贡献值32点
  • 好评度0点
  • 社区居民
2楼#
发布于:2011-06-20 11:37
huhuhu:自己改css吧,一劳永逸。
@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("www.firefox.net.cn"), domain("www.mozcn.org") {
td.row1, td.row2 { white-space: normal !important; }
TD[class^="row"] TD[height="100%"] img {max-width: 600px !important;}
TD[class^="row"] TD[height="100%"] img:active {max-width: 100% !important;}
span[class="postbody"] img {max-width: 600px !important;}
span[class="postbody"] img:active {max-width: 100% !important;}
/* Show magnifier cursor when hovering on content img, non-specific for scaled-down img */
/*TD[class^="row"] TD[height="100%"] img {cursor: -moz-zoom-in !important;}*/
}
回到原帖


  谢谢,用CSS可以解决,其实想站长修复这个问题,因为我也不是第一个说这个问题的了。以前就有人提过。


=================
这个网页还是被撑大了。
[UserStyle]隔壁一个蛮漂亮的浮动侧栏 - 阅读主题 :: Mozilla Firefox中文社区 - https://www.firefox.net.cn/forum/viewtopic.php?t=37292
游客

返回顶部