<script> $(document).ready(function(){ $("#panel").click(function(){ var kk=$(".panel-body"); kk.slideToggle(1000); kk.attr("style","color:red;");//这行代码有问题吗? }) }) </script></head><body> <div class="panel" id="panel">点我显示/隐藏内容 <div class="panel-body">Hello world!</div> </div></body></html>
添加回答
举报
0/150
提交
取消