Multiple distinct pages in one HTML file

后端 未结 12 1062
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-04 10:05

Is there any way to have multiple distinct HTML pages contained within a single HTML file? For example, suppose I have a website with two pages:

Page 1 : cl         


        
12条回答
  •  广开言路
    2020-12-04 10:57

    This is kind of overriding the thing of one page, but... You could use iframes in HTML.

    
    
    
    
    
    

    And page1.html would be your base page. Your still making multiple pages, but your browser just doesn't move. So lets say thats your index.html. You have tabs, you click page 2, your url wont change, but the page will. All in iframes. The only thing different, is that you can view the frame source as well.

提交回复
热议问题