How long can a webpage be?

后端 未结 8 2205
青春惊慌失措
青春惊慌失措 2021-02-18 22:24

Bit of a bizarre question, but does anyone know the actual limit to the length of a webpage, and why it is the limit?

As an experiment, I\'m using HTML and CSS to make a

相关标签:
8条回答
  • 2021-02-18 22:38
    1. It's a browser / memory / os architecture issue.
    2. Measuring it in anything but pixels won't be very useful unless you are referring to the size of a printed webpage on a specific paper size, orientation and scale. Screens have different sizes and DPI's.
    0 讨论(0)
  • 2021-02-18 22:40

    There is no limit, as per any HTML/XHTML specification, so this is just the practical limit of the browser that you're hitting. How long a webpage can be is the same as asking how long a book can be.

    0 讨论(0)
  • 2021-02-18 22:44

    There is no limitation. Even in terms of size of integer, you can create divs in other divs and have all of them biggest value of margin value so your page will not be limited.

    0 讨论(0)
  • 2021-02-18 22:47

    18.939 kilometers, to be exact: http://worlds-highest-website.com/

    0 讨论(0)
  • 2021-02-18 22:48

    Just a guess but 2147483647; max int value (probably pixels)

    Interestingly though IE9 seems to go up to 214748.3px and when I go higher it goes into the negative.

    0 讨论(0)
  • 2021-02-18 22:49

    This will depend on the browser. There shouldn't be any clear limit on the length of the HTML file. The pure "length", as in pixels, shouldn't have any clearly defined limit either. Only, the more elements there are in the page, the more the browser has to do, and the sooner it may run out of memory. Memory is about the only limit there is.

    0 讨论(0)
提交回复
热议问题