Home >Web Front-end >HTML Tutorial >How to make the left link open on the right in the div css frame? _html/css_WEB-ITnose

How to make the left link open on the right in the div css frame? _html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:14:231925browse

Like the following code, I want to use div css to create a frame instead of frameset. Can this be achieved?

<html><body><style type="text/css"><!--body { font-family:Verdana; font-size:14px; margin:0;}#container {margin:0 auto; width:900px;}#sidebar { float:left; width:200px; height:500px; background:#6cf;}#content { float:right; width:695px; height:500px; background:#cff;}--></style><div id="container">  <div id="sidebar"><a href="http://www.google.com">google</a></div>  <div id="content">内容</div></div></body></html>


Reply to the discussion (solution)

It’s the same. After making the templates, you can import them one by one

Can't. But js should be able to

If you want to get dynamic content, you can only use AJAX. If it is static, you can show and hide the implementation!


ajax

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