A question about the iframe framework, please ask an expert to answer it_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:17:08
Original
890 people have browsed it

This is the code for the frame part of my iframe








top.html There are two links A and B

Now I want to implement such a function. When A is clicked, the left and right below are displayed normally (that is, divided into left and right part), how to realize that when you click B, the left and right parts below are merged, that is, the bottom part is a whole, and the parts are left and right~~~~~~~~~


Reply to the discussion (Solution)

To be implemented using javascript.

To be implemented using javascript.

Hmm, how to implement this using JS? Can you tell me the process??

When you click B, set the left width to 0.

Similar to making a menu bar on the left that can be hidden.

When clicking B, set the left width to 0.

Similar to making a menu bar on the left that can be hidden.

Well, I just don’t know where the JS should be written ~

In B’s click event

In B’s click event
But when I click B, it’s really top If you click, you cannot get the left object in the frame at all. I have tried this method before~

Idea: When you click A, you don’t need to execute too many methods, just keep the original frame mode. If you want If you want to change it, get the cols of the frameset and change its layout mode.

When clicking B, get the cols of the frameset inside and set the value to "*"

Thank you everyone for your answers. None of them are the answers I want, but thank you anyway. It can be concluded Posted

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template