Home  >  Article  >  Web Front-end  >  Display two divs side by side and switch content by clicking on the title_javascript skills

Display two divs side by side and switch content by clicking on the title_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:19:151156browse
Copy code The code is as follows:




选项卡




首页


嘿嘿,无视div原始class值。


测试


继续无视h3原始class值。


无聊


h3没有值也可以~


傻蛋


div没有值一样可以~




首页


  1. 嘿嘿,无视容器原始class值。

测试


  1. 继续无视h3原始class值。

无聊


  1. h3没有值也可以~

傻蛋


  1. div没有值一样可以~



首页


嘿嘿,无视h3原始class值。


测试


继续无视div原始class值。


无聊


h3没有值也可以~


傻蛋


class值相似一样也可以~

指定class后,即时再多一个div也行。






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