Solution to interface deformation when setting frameset height

Solution to interface deformation when setting frameset height
Currently I have made a project, the interface is as follows:

This was done using frameset. No problems were found when developing on a wide screen until a user tested it on a 800*600 machine and found that the entire interface was deformed.
At that time, the entire frameset page was only 600 pixels high, and scroll bars appeared in the frames nested in the frameset, which was really ugly. How can I set the height of the frameset higher so that the nested frame page has no scroll bar but the frameset has a scroll bar?

The height of the frameset cannot be set, for example: <frameset rows="110,*" style="height: 1900px;">. At this time, the page is still the height of the screen, not 1900px; setting the height of the frameset's body is also invalid. What should I do? I searched Baidu for many days but couldn't find the answer, so this question has been left unanswered. I also thought of asking the artist to replace the frameset with DIV+CSS, but I was afraid that it would involve too much content and the workload might be too great, so I had to give up.

Inspiration is a strange thing. It may come or not, but when it comes, you cannot stop it. Just after this problem was left for about a month, it suddenly appeared today, and it came with an iframe. When I nested the frameset in it and set the height of the iframse page, the effect really came out. I would like to share the solution with colleagues who have encountered the same problem but cannot solve it.

1. frameset page (inner.html)

Copy code
The code is as follows:

<html>
<frameset rows="110,*" frameborder="no" border="0" framespacing="-4px">
<frame src="header.jsp" name="topFrame" scrolling="no" noresize="noresize" />
<frameset cols="170,12,*" framespacing="0" frameborder="no" border="0" id="mainFrameset">
<frame src="left.jsp" name="leftFrame"scrolling="auto" noresize="noresize" id="leftFrame"/>
<frame src="narrow.jsp" scrolling="no" noresize="noresize"/>
<frame src="" name="mainFrame" noresize="noresize" />
</frameset>
</frameset>
<noframes>
</noframes>
</html>


2. iframe page (outer.html)
The key is to set the height of this page. You can set it as high as you want. At this time, the frameset contained in it will also be this height.

Copy code
The code is as follows:

<body style="margin: 0px;height: 580px;width:960px;">
<iframe src="inner.html"
style="height:100%;width:100%;border-width: 0px;">
</iframe>
</body>

<<:  How to prevent duplicate submission in jquery project

>>:  What is web design

Recommend

W3C Tutorial (3): W3C HTML Activities

HTML is a hybrid language used for publishing on ...

Introduction to HTML Chinese Character Encoding Standard

In HTML, you need to specify the encoding used by...

Linux's fastest text search tool ripgrep (the best alternative to grep)

Preface Speaking of text search tools, everyone m...

Mysql cannot select non-aggregate columns

1. Introduction I recently upgraded my blog and a...

MySQL deduplication methods

MySQL deduplication methods 【Beginner】There are v...

Implement MySQL read-write separation and load balancing based on OneProxy

Introduction Part 1: Written at the beginning One...

MySQL optimization tutorial: large paging query

Table of contents background LIMIT Optimization O...

Detailed instructions for installing mysql5.7 database under centos7.2

The mysql on the server is installed with version...

Implementation of Docker deployment of ElasticSearch and ElasticSearch-Head

This article mainly explains how to deploy Elasti...

Mysql join query syntax and examples

Connection query: It is the result of connecting ...

Several ways to remove the dotted box that appears when clicking a link

Here are a few ways to remove it: Add the link dir...

MySQL 8.0.12 installation and configuration method graphic tutorial (windows10)

This article records the installation graphic tut...

JavaScript realizes magnifying glass special effects

The effect to be achieved: When the mouse is plac...