Heim  >  Artikel  >  Web-Frontend  >  div+css的框架如何让左边链接在右边打开?_html/css_WEB-ITnose

div+css的框架如何让左边链接在右边打开?_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:14:231889Durchsuche

像如下代码,我是想用div+css制作框架的并不是用frameset,可以实现吗?

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


回复讨论(解决方案)

一样啊 做好模板后 一个个导入即可

不可以。但是js应该可以    

如果是获取动态内容那就只能用AJAX了,如果是静态的可以显示隐藏实现!


ajax

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn