摘要: css: <style> span::before{ content: "*"; color: #ff0000; font-size: 25px; position: relative; top: 10px; } </style> <span>必填项</span> 如果把红星加到后面,css写为sp 阅读全文
posted @ 2020-04-28 14:02 留下成长的足迹 阅读(1514) 评论(0) 推荐(0) 编辑
摘要: $.parser.parse("$('#需要渲染的内容').parent()") 阅读全文
posted @ 2020-04-27 14:14 留下成长的足迹 阅读(229) 评论(0) 推荐(0) 编辑
摘要: String.Format('{0,4:D3}',num)是把num转换为一个字符串,字符串长度为4,把num转换为长度为三位的整数,不够四位的用0补够四位。 参考文档:https://www.jb51.net/article/57216.htm 官方文档:https://docs.microsof 阅读全文
posted @ 2020-04-26 16:11 留下成长的足迹 阅读(657) 评论(0) 推荐(0) 编辑
摘要: 原文地址: https://blog.csdn.net/liuhailiuhai12/article/details/55252283 1. .parent{ width:400px; height:500px; display:flex; justify-content: center; alig 阅读全文
posted @ 2020-04-24 11:43 留下成长的足迹 阅读(785) 评论(0) 推荐(0) 编辑
摘要: 1.npm config ls //查看npm的配置文件 会发现里面的registry是npm原始的镜像:https://registry.npmjs.org/ 2.永久修改为淘宝镜像。 npm config set registry https://registry.npm.taobao.org 阅读全文
posted @ 2020-04-23 10:30 留下成长的足迹 阅读(508) 评论(0) 推荐(0) 编辑
摘要: 1.table标签中添加table-layout:fixed <table style="table-layout:fixed"> </table> 2.td标签中样式添加宽度,width:100px;换行模式:word-break:break-all;//允许在单词内换行。,word-break: 阅读全文
posted @ 2020-04-21 18:22 留下成长的足迹 阅读(9727) 评论(0) 推荐(0) 编辑
摘要: cd D:\gitStydy //切换到D盘的gitStudy文件夹 。change direction 简写为cd。 参考地址:https://www.cnblogs.com/SamWeb/p/6516784.html 阅读全文
posted @ 2020-04-20 18:57 留下成长的足迹 阅读(7460) 评论(0) 推荐(0) 编辑
摘要: 下载地址,淘宝镜像:https://npm.taobao.org/mirrors/git-for-windows/ 0. git helper -a //查看全部git子命令 git --version //查看git版本 1. git checkout -b 'branchName' //创建一个 阅读全文
posted @ 2020-04-20 11:43 留下成长的足迹 阅读(336) 评论(0) 推荐(0) 编辑
摘要: <div> <table></table> </div> <style> div { text-align: 'center'; } table { margin: auto } </style> 阅读全文
posted @ 2020-04-19 18:39 留下成长的足迹 阅读(470) 评论(0) 推荐(0) 编辑
摘要: 什么是JS事件冒泡?: 在一个对象上触发某类事件(比如单击onclick事件),如果此对象定义了此事件的处理程序,那么此事件就会调用这个处理程序,如果没有定义此事件处理程序或者事件返回true,那么这个事件会向这个对象的父级对象传播,从里到外,直至它被处理(父级对象所有同类事件都将被激活),或者它到 阅读全文
posted @ 2020-04-18 20:52 留下成长的足迹 阅读(2285) 评论(0) 推荐(0) 编辑