Home >Web Front-end >HTML Tutorial >How to create the current effect of the menu when there is a frame, and how to make the left menu change with the change of the menu above_html/css_WEB-ITnose

How to create the current effect of the menu when there is a frame, and how to make the left menu change with the change of the menu above_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:16:361292browse

The structure is like this:
The upper frame has head and nav
The left frame is the secondary menu
The right frame is the main content area
Now I hope to do it, the nav mouse is crossed There is an effect after clicking;
After clicking the menu on nav, the secondary menu on the left will change accordingly, and the secondary menu also has its own current effect

What should be done?





Reply to discussion (solution)

Too many iframes will consume resources (although it is estimated that it will not happen now) I don’t care that much, but I still use the notebook from more than 4 years ago)
If you want to connect two iframes, it seems that only one iframe passes parameters or directly calls the current page, and then calls another iframe through the current page

Use display:none to do it. Hide the written content in the web page first, and control whether it appears through click events.

It has been solved. I personally complicated the problem by changing the frame of the head. Removed
Thank you both!

Statement:
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