上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 202 下一页
摘要: 例子: margin:3px 4px 5px 6px; 说明:上外边距3px 右外边距4px 下外边距5px 左外边距6px 这四项是按顺时针排列的,第一项在12点方向 第二项在3点方向 第三项在6点方向 第四项在9点方向 做成表格更方便记忆: margin/padding 3px 4px 5px 阅读全文
posted @ 2021-11-21 13:31 逆火狂飙 阅读(88) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-11-21 13:23 逆火狂飙 阅读(86) 评论(0) 推荐(0)
摘要: 先上效果图: 再上代码: <!DOCTYPE html> <html lang="utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <head> <title>标题</title> <style 阅读全文
posted @ 2021-11-21 13:16 逆火狂飙 阅读(141) 评论(0) 推荐(0)
摘要: Html code: <a href="holiday_pay" class="popup">Holiday pay</a> JS code: var link=$("a.popup"); links.click(function(event){ event.preventDefault(); wi 阅读全文
posted @ 2021-11-21 09:51 逆火狂飙 阅读(150) 评论(0) 推荐(0)
摘要: .div1{ float:left; width:100px; } .div2{ float:right; width:200px; } 阅读全文
posted @ 2021-11-21 09:47 逆火狂飙 阅读(167) 评论(0) 推荐(0)
摘要: .div{ clear:both; width:100%; display:block; } clear:both是其中核心一句。 阅读全文
posted @ 2021-11-21 09:45 逆火狂飙 阅读(220) 评论(0) 推荐(0)
摘要: .div{ margin:0 auto; width:128px; } margin:0 auto;几乎是块级元素水平居中的通用途径。 阅读全文
posted @ 2021-11-21 09:25 逆火狂飙 阅读(278) 评论(0) 推荐(0)
摘要: var radios=document.getElementsByName("XXX"); if(rsps.data.valueFrom=='fix'){ radios[0].click(); }else{ radios[1].click(); } 模拟点击是比较稳妥的选择单选框的方式。 阅读全文
posted @ 2021-11-21 09:22 逆火狂飙 阅读(642) 评论(0) 推荐(0)
摘要: $("#id").attr("disabled",true); // 使控件可用 或 $("#id").attr("disabled",false); // 使控件不可用 阅读全文
posted @ 2021-11-21 09:05 逆火狂飙 阅读(50) 评论(0) 推荐(0)
摘要: var arr=[{text:"abc",value:123},{text:"edf",value:456}]; var comparer=function(op1,op2){ if(op1.text<op2.text){ return -1; }else if(op1.text>op2.text) 阅读全文
posted @ 2021-11-21 09:03 逆火狂飙 阅读(141) 评论(0) 推荐(0)
上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 202 下一页
生当作人杰 死亦为鬼雄 至今思项羽 不肯过江东