1

I'm doing an horizontal calendar. I was testing something today and I'm wondering if it's a bug or if it's really a limitation of the browser.

In short, I'd like to have an infinite width. The calendar is within a div and would overflow to infinite.

After inserting a really big range, I realized that my width was actually 0px. Then after searching. I found to width with strange behavior.

  • 35791375px px width is 0px
  • 35791374px background disappear
  • 35791373px div displays correctly

And was wondering actually what would be the actual maximal width that would work across all browsers. These numbers are quite strange. They are not factors of 8.

Here is a sample markup.

<div class="calendar" style="overflow: hidden; width: 1000px;">
   <div class="scroll" style="width: 35791375px;">
       <div class="month">...</div>
       ...
       <div class="month">...</div>
   </div>
</div>
4

1 に答える 1

0

ここで答えが見つかると思います:

最大ページ長に関するブラウザの制限

基本的に、ブラウザが表示できる量には制限があります。
...ちなみに、35791375 ピクセルは約 7.5 マイルです。

于 2012-10-31T14:58:33.357 に答える