zoukankan      html  css  js  c++  java
  • Div+Css+JS做多个显示/隐藏内容块

    相关样式:
    Code
    HTML:
    <div class="mainbox">
                
    <span class="headactions">
                    
    <img id="category_CN_img" src="http://www.cnblogs.com/Images/expand.jpg" alt="展开/收起" onclick="toggle_collapse('category_CN');"/>
                
    </span>
                
    <h3 onclick="toggle_collapse('category_CN');">
                
    <href="#">Content</a>
                
    </h3>
                
    <div id="category_CN" style=" display:none;">
                
    <table  class="tablelist" align="center" cellpadding="0">
                    
    <tr>
                        
    <td>
                            Title:
                        
    </td>
                        
    <td colspan="3">
                            
    <te:TETextBox ID="txtCSTitle" runat="server" Width="380px" MaxLength="100"></te:TETextBox>
                        
    </td>
                    
    </tr>
                    
    <tr>
                        
    <td>
                            Content:
                        
    </td>
                        
    <td colspan="3">
                            
    <FCKeditorV2:FCKeditor ID="txtCSContent" runat="server" Height="350px" Width="98%">
                            
    </FCKeditorV2:FCKeditor>
                        
    </td>
                    
    </tr>
                
    </table>
                
    </div>
            
    </div>

    JS:
    Code
  • 相关阅读:
    程序是如何在 CPU 中运行的(二)
    程序是如何在 CPU 中运行的(一)
    结构体内存对齐解析
    如何以面向对象的思想设计有限状态机
    union 的概念及在嵌入式编程中的应用
    STM32 内存分配解析及变量的存储位置
    C语言如何实现继承及容器
    C语言指定初始化器解析及其应用
    pandas中的 where 和mask方法
    python中的类变量
  • 原文地址:https://www.cnblogs.com/hantianwei/p/1575143.html
Copyright © 2011-2022 走看看