如何在HTML中隐藏和显示页面 [英] How to hide and show a page in html

查看:126
本文介绍了如何在HTML中隐藏和显示页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个html5文件,其中包含各种显示为页面的div ..

我想根据页面上选择的选项来修改显示的流程.

对于前

第1页

link2-> page2
link3-> page3

page2 ....
link4-> page4
第3页....

第4页..

谁能帮我这个忙

谢谢

I have a single html5 file which is containing various divs behaving as pages ..

I want to modify the flow of display on the basis of the choices selected on the page .

For ex

page1

link2->page2
link3->page3

page2....
link4->page4
page3....

page4..

Can anyone help me with this

Thank You

推荐答案

请查看一些链接以获取参考:
使用JavaScript显示和隐藏元素 [使用CSS简单显示/隐藏 [如何使用JavaScript显示和隐藏HTML元素 [ ^ ]
使用JavaScript显示/隐藏元素 [ ^ ]

相似的质量检查:
显示(可见/隐藏的不显示/隐藏)基于表单选择框选择的HTML元素 [
Please have a look on some links to get reference:
Show and Hide Elements with JavaScript[^]
Simple show/hide with CSS[^]
How to show and hide HTML elements using Javascript[^]
Show / Hide Elements with JavaScript[^]

Similar QA:
Show (Visible/Hidden NOT Show/Hide) HTML Element based on form select box selection[^]


使用jQuery可以所做为:
using jQuery it can be done as:


(文档).ready(函数(){
(document).ready(function () {


这篇关于如何在HTML中隐藏和显示页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆