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