Strict Standards: Non-static method Protector::getInstance() should not be called statically in /home/suehirogari/suehirogari.com/xoops_trust_path/modules/protector/include/precheck_functions.php on line 12

Strict Standards: Non-static method XCube_Root::getSingleton() should not be called statically in /home/suehirogari/suehirogari.com/public_html/include/common.php on line 18

Deprecated: Non-static method XCube_Root::getSingleton() should not be called statically, assuming $this from incompatible context in /home/suehirogari/suehirogari.com/public_html/modules/user/preload/Primary/Primary.class.php on line 13
横スクロールが必要なページの時に、背景画像がrepeat-xで指定しても 途中で途切れて、白くなるときの対処法 | 社内SEのウェブ制作

2011.02.26xoopsズープス

横スクロールが必要なページの時に、背景画像がrepeat-xで指定しても 途中で途切れて、白くなるときの対処法

背景が白で見切れちゃうという事です。

これは幅の指定をしていないのが原因。どうも、幅が指定されていなかった場合、FireFoxなどのブラウザでは

”背景の表示範囲=ブラウザの表示範囲”

という図式が成立してしまうらしいのです。

ならば幅を指定してやればいいのです。

bodyの背景が見切れているようであれば、この一行で一発です。

body{min-width:1024px;} ちなみに、IE6でmin-widthは使えませんが、そもそもIE6はこの見切れ自体が発生しないので、ハナから問題ありません。

この見切れは、結構カッコ悪いので、気になる方はチェックしてみて下さい。


このカテゴリの人気記事



  • コメント (0)
  • トラックバック (0)
  • 閲覧 (20152)

トラックバック

トラックバックpingアドレス http://www.suehirogari.com/modules/blog/tb.php/166

コメントの投稿

コメント投稿に関するルール : コメントは全て承認が必要

キーワードでサイト内を検索
人気のエントリ