Name(属性名) Value(默认值) Description(描述)
collapse false 该属性用来控制是否代码块是否默认折叠。


例1:collapse: true 的 HTML 代码及显示效果

HTML 代码

<pre class="brush: cpp; collapse: true">
  hello there! 
  This is collapsed code.
</pre>

 

显示效果

  hello there! 
  This is collapsed code.

例2:collapse: false 的 HTML 代码及显示效果

HTML 代码

<pre class="brush: cpp; collapse: false">
  hello there! 
  This is collapsed code.
</pre>

 

显示效果

  hello there! 
  This is collapsed code.

系列文章索引:http://www.cnblogs.com/duxiuxing/archive/2012/05/29/2524243.html

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2022-02-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案