上一页 1 2 3 4 5 6 7 8 ··· 19 下一页

2022年9月9日

CSS单行文本溢出显示…三件套

摘要: p{ width:100px; height:20px; /*三件套*/ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } 阅读全文

posted @ 2022-09-09 15:13 小馬過河﹎ 阅读(42) 评论(0) 推荐(0)

CSS段落两端对齐 / 长文本自动换行

摘要: Examples 1 p{ text-align: justify; text-justify: inter-ideograph; } Examples 2 p{ word-wrap: break-word; word-break: normal; } 阅读全文

posted @ 2022-09-09 15:12 小馬過河﹎ 阅读(120) 评论(0) 推荐(0)

开启MYSQL慢查询

摘要: 在安装根目录下my.ini加入两行(5.5以上版本) slow_query_log = ON long_query_time = 1 重启MySQL >net stop mysql >net start mysql 查看配置 SHOW VARIABLES LIKE '%slow_query_log% 阅读全文

posted @ 2022-09-09 15:11 小馬過河﹎ 阅读(18) 评论(0) 推荐(0)

jQuery全选/全不选

摘要: HTML <input type="checkbox" id="checkAll">全选/全不选 <input type="checkbox" name="item[]" value="1">item1 <input type="checkbox" name="item[]" value="2">i 阅读全文

posted @ 2022-09-09 15:07 小馬過河﹎ 阅读(38) 评论(0) 推荐(0)

jQuery判断复选框是否被选中

摘要: DOM方式判断 var $cr=$('#cr') var cr=$cr[0] $cr.click(function(){ if(cr.checked){ alert('复选框被选中了') } }) jQuery方式判断 var $cr=$('#cr') $cr.click(function(){ i 阅读全文

posted @ 2022-09-09 15:03 小馬過河﹎ 阅读(29) 评论(0) 推荐(0)

jQuery导出HTML表格到Excel|jquery.table2excel.js的用法

摘要: Examples $(function(){ $('#btn').click(function(){ $('#tb').table2excel({ exclude:'.noExcl', //标记不导出行的CSS,用到td上会导致后面的td前移 name:'ExcelDocumentName', // 阅读全文

posted @ 2022-09-09 15:01 小馬過河﹎ 阅读(1977) 评论(0) 推荐(0)

jquery-select多选

摘要: 文档 https://multiple-select.wenzhixin.net.cn/ Examples <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>MULTIPLE SELECT</title> <script src= 阅读全文

posted @ 2022-09-09 14:57 小馬過河﹎ 阅读(28) 评论(0) 推荐(0)

flex结合margin:auto定义包含项目居中显示

摘要: margin:auto;在伸缩盒中具有强大的功能,一个定义为“auto”的margin会合并剩余的空间,它可以用来把伸缩项目挤到其它位置。 Examples <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <style> body{ marg 阅读全文

posted @ 2022-09-09 14:55 小馬過河﹎ 阅读(43) 评论(0) 推荐(0)

背景图像完全覆盖元素区域

摘要: Examples <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>背景图像完全覆盖元素区域</title> <style> div{ margin:2px; float:left; border:1px solid red; b 阅读全文

posted @ 2022-09-09 14:53 小馬過河﹎ 阅读(28) 评论(0) 推荐(0)

javascript|jQuery清除input空格

摘要: Examples $(function(){ //表单去空格 $("input").bind('blur keyup',function(){ $(this).val($(this).val().replace(/\s*/g,'')) }) }) 阅读全文

posted @ 2022-09-09 14:51 小馬過河﹎ 阅读(27) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 ··· 19 下一页

导航