Home > Web Front-end > HTML Tutorial > Asking for a navigation on the left and clicking on relevant information to display the content on the right_html/css_WEB-ITnose

Asking for a navigation on the left and clicking on relevant information to display the content on the right_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:12:21
Original
3361 people have browsed it

In web page production, I use div to make a head and a bottom
Make a navigation bar on the left side of the middle block, and display data on the right side
Finally, connect it to php to include the head, middle and bottom
Each linked content can display data on the right side of the middle part, and the rest remains unchanged
[img=http://f][/img]


Reply to discussion (solution)

You can choose iframe, frameset, ajax

Reference
http://www.w3school.com.cn/tags/tag_iframe.asp
http://www.w3school.com.cn/tags/tag_frameset.asp
http://www.w3school.com.cn/ajax/index.asp




For example, iframe

<!DOCTYPE HTML><html>	<head>		<meta charset="gb2312" />		<title></title>		<style>				</style>	</head>	<body>		<a href="http://baidu.com/" target="test">百度</a>		<a href="http://hao123.com/" target="test">hao123</a>		<iframe src="http://qq.com/" name="test"></iframe>	</body></html>
Copy after login

I want to make it like this
include "database1.php";
include" 12.php";
include"footer.php";
?>
12.php is the content displayed on the right side of the left navigation just mentioned, but when you get the content displayed in the link here, it will jump When it reaches the bottom, it is displayed below the footer, and it is still displayed in the form of a window. How to deal with this?
Thank you

Yes, you can use that iframe. You can use DW as the frame. It feels good. Then you save the content into mysql

Generally use iframe, frameset is not very easy to use

Thank you everyone, it’s solved

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