jquery点击展示与隐藏更多内容

先上效果

点击前

点击后展开

HTML代码

rush:xhtml;">
遇到问题?
  • Ctrl+F5刷新本页面
  • 关闭页面,重新加载本页面登录
  • 更换浏览器(建议使用火狐和谷歌浏览器)
  • 联系我们
  • jquery代码

    rush:js;"> $(function() { //遇到问题的弹出文字 $("#tips h5.tips_head").bind("click",function() { var $tips_content = $(this).next("div.tips_content"); if ($tips_content.is(":visible")) { $tips_content.hide(); } else { $tips_content.show(); } }) })

    css代码

    rush:css;"> .tips_head { padding-left:20px; cursor: pointer ; text-align:left; margin-top:20px; color:red;}

    .tips_content {
    padding: ;
    border-top: 1px solid #0050D0;
    display:block;
    display:none;
    text-indent: 2em;
    text-align:left; }

    以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持编程之家。

    相关文章

    页面搜索关键词突出 // 页面搜索关键词突出 $(function () {...
    jQuery实时显示日期、时间 html: <span id=&quot...
    jQuery 添加水印 <script src="../../../.....
    中文:Sys.WebForms.PageRequestManagerParserErrorExceptio...
    1. 用Response.Write方法 代码如下: Response.Write(&q...
    Jquery实现按钮点击遮罩加载,处理完后恢复 思路: 1.点击按...