随笔分类 - js
摘要:偶遇大神三级联动,顿觉新颖,借鉴之。 展示图 html <style> .box{width:80%; margin:20px auto} .box p{line-height:24px} </style> <body> <div class="box"> <p>三级联动</p> <p>没有数据的s
阅读全文
摘要:jquery attr 1 <script> 2 3 // 获取class 名 4 $(".box").attr("class") 5 6 // 修改或添加class名,有(用class获取)就是修改,没有(用id获取)就是添加 7 $("#box").attr("class","men") 8 9
阅读全文
摘要:级联菜单 效果图 1 <style> 2 li{ 3 cursor: pointer; //鼠标是小手 4 } 5 .jiu{ 6 display:none; 7 } 8 </style> 9 <body> 10 <ul> 11 <li>蜀国 12 <ul class="jiu"> 13 <li>主
阅读全文
摘要:无缝滚动 <style> *{ margin:0; padding:0; } #content{ height:200px; width:500px; background:pink; margin:200px; position:relative; overflow:hidden; } #box{
阅读全文
摘要:验证码倒计时 1 <style> 2 .btn{ 3 color:red; 4 } 5 .dian{ 6 color:green; 7 } 8 </style> 9 <body> 10 <input type="button" class="btn" value="获取验证码" onclick="d
阅读全文

浙公网安备 33010602011771号