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

WBOY
Release: 2016-06-24 12:14:23
Original
1887 people have browsed it

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>
Copy after login


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

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!