HTML中折叠展开的实现。

html-css014

HTML中折叠展开的实现。,第1张

<!DOCTYPE HTML>

<html>

<body>

<details>

<summary>Copyright 2011.</summary>

<p>All pages and graphics on this web site are the property of W3School.</p>

</details>

</body>

</html>

点编辑-大纲显视-启动自动大纲显视就行了!

如下图:

1、

2、

我的是vs2012,希望采纳:)