猿问
下载APP

用DIV怎么实现框架的效果,就是点左边的导航栏,在右边显示内容,不用iframe的话,该怎么实现呢

慕侠2282842
浏览 5668回答 16
16回答

狂飙的蜗牛_1

一种方式是使用锚点,这个比较简单。 第二种方式就是,点击某个导航,然后相应内容块显示,其它内容块隐藏。至于具体实现的话可以使用for循环,该隐藏的块隐藏该显示的块显示,也可以不用循环,每次点击导航时先关闭上一次打开的块,然后再打开本次点击对应的块。 第三种方式和锚点差不多,给一个父容器,父容器中放入很多块,父容器设置溢出隐藏,点击的时候通过改变子容器定位或者父容器的scrollTop来实现显示对应的块。 当然可能还有其他办法,到底用哪种看具体需求了

慕沐4049225

你完全把html代码封装在文里,前端html代码用文件调用即可,

码农2号

不用iframe,还有几种方法:傻瓜式;  右边div从上往下写,第一个show();其他的都hide();点击左边的控制右边的hide,show。同时在url里面加个’?111‘等类似的,判断,防止用户刷新后一直是第一个div显示。高级点;  模块化开发,每个都是一个模块。node,vue都可以做到。陈独秀的方法;  前端使用php的include方法引入。

旗舰店688

http://beijingkp.bandcamp.com/http://shanghainlkp.bandcamp.com/http://shnlkyykp.bandcamp.com/http://ycdksj.bandcamp.com/http://szdksj.bandcamp.com/http://daibansj.bandcamp.com/http://dlsj361.bandcamp.com/http://dbsj998.bandcamp.com/http://dxsj886.bandcamp.com/http://dksj001.bandcamp.com/http://nlydksj.bandcamp.com/http://nlyksj.bandcamp.com/http://shdksj021.bandcamp.com/http://bjdksj010.bandcamp.com/http://tjdksj022.bandcamp.com/http://cqdksj023.bandcamp.com/http://zgdksj.bandcamp.com/http://dkzxsj.bandcamp.com/http://dkjcjssj.bandcamp.com/http://dkzxgcksj.bandcamp.com/http://dksrzxsj.bandcamp.com/http://dkskzmsj.bandcamp.com/http://dkzmsj.bandcamp.com/http://dkskyjsj.bandcamp.com/http://beijingkp.bandcamp.com/http://shanghainlkp.bandcamp.com/http://szdksj.bandcamp.com/http://ycdksj.bandcamp.com/http://shnlkyykp.bandcamp.com/http://daibansj.bandcamp.com/http://dlsj361.bandcamp.com/http://dbsj998.bandcamp.com/http://dxsj886.bandcamp.com/http://nlydksj.bandcamp.com/http://nlyksj.bandcamp.com/http://shdksj021.bandcamp.com/http://bjdksj010.bandcamp.com/http://tjdksj022.bandcamp.com/http://cqdksj023.bandcamp.com/http://zgdksj.bandcamp.com/http://dkzxsj.bandcamp.com/http://dkjcjssj.bandcamp.com/http://dkzxgcksj.bandcamp.com/http://dkskzmsj.bandcamp.com/http://dkzmsj.bandcamp.com/http://dkskyjsj.bandcamp.com/http://hkwjuj5c.bandcamp.com/http://viybw9ky.bandcamp.com/http://vx3ysp3c.bandcamp.com/http://lfpdir6s.bandcamp.com/http://1no3pzhq.bandcamp.com/http://i7tu2ero.bandcamp.com/http://dksrzxsj.bandcamp.com/http://dksj001.bandcamp.com/

旗舰店688

http://u3y69d4y.bandcamp.com/http://0rdl81oy.bandcamp.com/http://nxl13vdf.bandcamp.com/http://svx8glih.bandcamp.com/http://b6jx6tdw.bandcamp.com/http://a2twaumn.bandcamp.com/http://4xboqba5.bandcamp.com/http://lmogwpe4.bandcamp.com/http://5dbrh2bu.bandcamp.com/http://76hlip3g.bandcamp.com/http://bg5f7k9o.bandcamp.com/http://cyhiklr8.bandcamp.com/http://x05flxb3.bandcamp.com/http://6tbhhyz1.bandcamp.com/http://cjy339jq.bandcamp.com/http://2wa367ch.bandcamp.com/http://y65nnaje.bandcamp.com/http://1ljjyxjd.bandcamp.com/http://2td1rn89.bandcamp.com/http://r7g6nrbl.bandcamp.com/http://m5f455pa.bandcamp.com/http://enqspbzo.bandcamp.com/http://4zi589fr.bandcamp.com/http://op8vz5jk.bandcamp.com/http://rlbxbprx221.bandcamp.com/http://hk0nq6p1.bandcamp.com/http://ixvuukok.bandcamp.com/http://o7ka1sic.bandcamp.com/http://6w79txvc.bandcamp.com/http://69wuelsc.bandcamp.com/http://n6pwdjd8.bandcamp.com/http://ntv4aazx.bandcamp.com/http://9uupgmp4.bandcamp.com/http://ox11oivg.bandcamp.com/http://w1cj3by6.bandcamp.com/http://03qgelhu.bandcamp.com/http://8oebsze3.bandcamp.com/http://78f3fss9.bandcamp.com/http://sj78fn46.bandcamp.com/http://3e35p6ca.bandcamp.com/http://e3hy7n2w.bandcamp.com/http://zgwtznim.bandcamp.com/http://iajnws6w.bandcamp.com/http://ucz0zsd1.bandcamp.com/http://6w65rkza.bandcamp.com/http://m8v0c5ev.bandcamp.com/http://ujrfs12a.bandcamp.com/http://w1nawe8j.bandcamp.com/http://77srhv2b.bandcamp.com/http://2w5nn8m1.bandcamp.com/http://g2jc0yeg.bandcamp.com/http://7qp1hc38.bandcamp.com/http://b1fa44f9.bandcamp.com/http://m3r4arkc.bandcamp.com/http://z4zk7fmc.bandcamp.com/http://h2m9030d.bandcamp.com/http://3zcvmyb8.bandcamp.com/http://xkrs4xzp.bandcamp.com/http://xkrs4xzp889.bandcamp.com/http://8odc2qna556.bandcamp.com/http://rlbxbprx.bandcamp.com/http://r5qc1r0r.bandcamp.com/http://ccvkb1cp.bandcamp.com/http://jxxt13ul.bandcamp.com/http://xbs4nqb2.bandcamp.com/http://wkfed2lp.bandcamp.com/http://mvljm27c.bandcamp.com/http://3cdro1r9.bandcamp.com/http://wjixwbrn.bandcamp.com/http://gcizkzgn.bandcamp.com/http://0p69v797.bandcamp.com/http://v8mt2uip.bandcamp.com/http://030ealvz.bandcamp.com/http://4g80xk0j.bandcamp.com/http://15o4x6pa.bandcamp.com/http://xgbzvz31.bandcamp.com/http://j0dde890.bandcamp.com/http://ilpmyei5.bandcamp.com/http://zzkiiv2c.bandcamp.com/http://bpdzh87u.bandcamp.com/http://aq4k8ajp.bandcamp.com/http://qnm606zp.bandcamp.com/http://ed550xew.bandcamp.com/http://w7szz53h.bandcamp.com/http://u07ofluo.bandcamp.com/http://tfneovpk.bandcamp.com/http://uz58vjyt.bandcamp.com/http://0ijanzrh.bandcamp.com/http://0qf8ftmj.bandcamp.com/http://af36arxi.bandcamp.com/http://xltjx1kk.bandcamp.com/http://3okmys72.bandcamp.com/http://le1tj75b.bandcamp.com/http://dsy89le0.bandcamp.com/http://0su2q1j1.bandcamp.com/http://gdythpa7.bandcamp.com/http://exj64mif.bandcamp.com/http://shnciyj8.bandcamp.com/http://zlnngpzo.bandcamp.com/http://m97bg9gg.bandcamp.com/http://t13fkqis.bandcamp.com/http://eolucmvi.bandcamp.com/http://3d4j3m2b.bandcamp.com/http://mhwp07t1.bandcamp.com/http://8d1i4cs9.bandcamp.com/http://945vd8kw.bandcamp.com/http://cydj5okv.bandcamp.com/http://4nubjl3y.bandcamp.com/http://905tucfl.bandcamp.com/http://6pgnc2l9.bandcamp.com/http://e7umwt57.bandcamp.com/http://crll1g3x.bandcamp.com/http://2iclxaqe.bandcamp.com/http://9a0rh9gu.bandcamp.com/http://3wmt80df.bandcamp.com/http://jodh32x3.bandcamp.com/http://npi4yyr5.bandcamp.com/http://lsg78slu.bandcamp.com/http://83xc95ya.bandcamp.com/http://ue181j9s.bandcamp.com/http://7myjiszp.bandcamp.com/http://gq1qk7qh.bandcamp.com/http://2dunrj9u.bandcamp.com/http://hmb9m9ax.bandcamp.com/http://hixntje1.bandcamp.com/http://pjlmrjvp.bandcamp.com/http://0z4zet0x.bandcamp.com/http://7rgws1sm.bandcamp.com/http://x1s1hw0t.bandcamp.com/http://7ray7gd8.bandcamp.com/http://7zayzhjs.bandcamp.com/http://8dhco0pn.bandcamp.com/http://bcs0kqtj.bandcamp.com/http://6s7ln3u0.bandcamp.com/http://jc7gv8mx.bandcamp.com/http://h2dgkcom.bandcamp.com/http://udjnnt7q.bandcamp.com/http://i083gq7t.bandcamp.com/http://31yzjnyy222.bandcamp.com/http://e3whiwl1.bandcamp.com/http://qs9qlxtj.bandcamp.com/http://1tsazc3c.bandcamp.com/http://grz8ckmj.bandcamp.com/http://pikcwshx.bandcamp.com/http://3mh69fvi.bandcamp.com/http://7g6n35vq.bandcamp.com/http://0oicol1e.bandcamp.com/http://qetvhvup.bandcamp.com/http://ibvwr6nl.bandcamp.com/http://3rarhbrm.bandcamp.com/http://nvltdv43.bandcamp.com/http://wz6gs8rv.bandcamp.com/http://aw8kghhc.bandcamp.com/http://xwkl3so4.bandcamp.com/http://412lgq5n.bandcamp.com/http://r75nea2m.bandcamp.com/http://2hv7nh8a.bandcamp.com/http://a91mj1ik.bandcamp.com/http://ecit5062.bandcamp.com/http://k4xea877.bandcamp.com/http://46djak1g.bandcamp.com/http://hhb7qkfx.bandcamp.com/http://w25d3v92.bandcamp.com/http://x860ojhq.bandcamp.com/http://mdhtz7ea.bandcamp.com/http://m6oibh8p.bandcamp.com/http://7wr01k0p.bandcamp.com/http://98wadfo1.bandcamp.com/http://wki9030b.bandcamp.com/http://u50hit1t.bandcamp.com/http://3ez4zs5p.bandcamp.com/http://mopm1sim.bandcamp.com/

旗舰店688

https://0qf8ftmj.bandcamp.com/releaseshttps://af36arxi.bandcamp.com/releaseshttps://xltjx1kk.bandcamp.com/releaseshttps://3okmys72.bandcamp.com/releaseshttps://le1tj75b.bandcamp.com/releases

慕哥3355399

https://bx29hvwg.bandcamp.com/releaseshttps://hf19enax.bandcamp.com/releaseshttps://o212nfwr.bandcamp.com/releaseshttps://7xt7vd0w.bandcamp.com/releaseshttps://409hz016.bandcamp.com/releaseshttps://7jrxapxv.bandcamp.com/releaseshttps://4zs9pxhz.bandcamp.com/releaseshttps://ypgj40uz.bandcamp.com/releaseshttps://lf9j6jda.bandcamp.com/releaseshttps://o05njvva.bandcamp.com/releaseshttps://6dc6tmij.bandcamp.com/releaseshttps://1kfihep8.bandcamp.com/releaseshttps://4vjp3bc5.bandcamp.com/releaseshttps://ey1k50x8.bandcamp.com/releaseshttps://k0kv6jrm.bandcamp.com/releaseshttps://kbmlh93j.bandcamp.com/releases

慕粉1474685792

1234556?

beyondgz521

用vue是最好的,简单的不行,而且点击过的再次点击不会刷新页面

阳光碎了一滴

jquery的html()方法

weixin_Shirley_5

123

weixin_Shirley_5

111

weixin_Shirley_5

123

云流烟

用vue或者react组件化,很容易实现的。要么就用原生的,display的none和block
打开App,查看更多内容
随时随地看视频慕课网APP
我要回答