两个并排的div之间有1px的间隙
摘要:如果用了display:inline-block;标签换行时就会出现间隙。如果必须用的话就改变div默认样式: div{margin:0;padding:0;} 改成 div{margin:0;padding:0;font-size: 0;}
阅读全文
posted @
2021-04-20 17:54
小虾米吖~
阅读(494)
推荐(0) 编辑
$.each 和 $(select).each 的区别
摘要:1.$(selector).each()主要对DOM的遍历 $(selector).each(function(index,element)){ //index - 选择器的 index 位置 //element - 当前的元素(也可使用 "this" 选择器) } $("button").clic
阅读全文
posted @
2021-04-19 17:56
小虾米吖~
阅读(178)
推荐(0) 编辑
jq把html转换为pdf(实现逻辑:html页面生成的canvas,以图片形式在pdf中呈现)
摘要:<div class="page_box"> 页面 页面代码 <input type="button" class="save" name="save" value="保存"></div> 引入包: <head> <meta charset="UTF-8"> <title>Title</title>
阅读全文
posted @
2021-04-19 09:16
小虾米吖~
阅读(961)
推荐(0) 编辑
输入小写金额转换为大写金额
摘要:html页面代码 <span>费用合计(人民币大写): <input class="width_input" type="text" id="one"/>拾 <input class="width_input" type="text" id="two"/>万 <input class="width_
阅读全文
posted @
2021-04-19 09:05
小虾米吖~
阅读(223)
推荐(0) 编辑
邮箱(outlook)嵌入html页面
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>邮件模板</title> </head> <body> <table width="1024" border="0" cellspacing="0" cellp
阅读全文
posted @
2021-04-19 08:53
小虾米吖~
阅读(1689)
推荐(0) 编辑