主页 > 知识库 > 网络编程 > JSP/Java >

jsp中折叠式标签的代码实现

来源:中国IT实验室 作者:佚名 发表于:2013-07-23 17:42  点击:
将代码和附件中带的css和js部署到项目中去即可运行 %@ page contentType=text/html; charset=utf-8 language=java import=java.sql.* errorPage= % html head meta http-equiv=Content-Type content=text/html; charset=utf-8 title无标题文档/title script
 将代码和附件中带的css和js部署到项目中去即可运行  <%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
  <html>
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>无标题文档</title>
  <script src=http://518chuanmei.com/style/aHR0cDovL3d3dy5kZWRlY21zLmNvbS8mcXVvdDtTcHJ5QXNzZXRzL1NwcnlBY2NvcmRpb24uanMmcXVvdDs.js type="text/javascript"></script>
  <link href=http://518chuanmei.com/style/aHR0cDovL3d3dy5kZWRlY21zLmNvbS8mcXVvdDtTcHJ5QXNzZXRzL1NwcnlBY2NvcmRpb24uY3NzJnF1b3Q7.css rel="stylesheet" type="text/css">
  </head>
  <body>
  <div id="Accordion1" class="Accordion" tabindex="0">
  <div class="AccordionPanel">
  <div class="AccordionPanelTab">标签 1</div>
  <div class="AccordionPanelContent">内容 1</div>
  </div>
  <div class="AccordionPanel">
  <div class="AccordionPanelTab">标签 2</div>
  <div class="AccordionPanelContent">内容 2</div>
  </div>
  </div>
  <script type="text/javascript">
  var Accordion1 = new Spry.Widget.Accordion("Accordion1");
  </script>
  </body>
  </html>
  附件解压后放到webroot下。。

    有帮助
    (0)
    0%
    没帮助
    (0)
    0%