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
This article uses an example to illustrate the us...
HTML is a hybrid language used for publishing on ...
In HTML, you need to specify the encoding used by...
Preface Speaking of text search tools, everyone m...
1. Introduction I recently upgraded my blog and a...
MySQL deduplication methods 【Beginner】There are v...
Introduction Part 1: Written at the beginning One...
Effect: css: .s_type { border: none; border-radiu...
Table of contents background LIMIT Optimization O...
The mysql on the server is installed with version...
This article mainly explains how to deploy Elasti...
Connection query: It is the result of connecting ...
Here are a few ways to remove it: Add the link dir...
This article records the installation graphic tut...
The effect to be achieved: When the mouse is plac...