Fork me on GitHub
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 25 下一页
摘要: $(document).ready(function(e) { var counter = 0; if (window.history && window.history.pushState) { $(window).on('popstate', function () { window.histo 阅读全文
posted @ 2017-09-08 11:20 思考的大腿 阅读(4471) 评论(1) 推荐(0) 编辑
摘要: 在html标记样式里加入 这样的方式可以设置chrome字体小于12px,但是字体大小不再随ctrl+滚轮变化 阅读全文
posted @ 2017-09-07 16:14 思考的大腿 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 获取各种屏幕的宽度和高度Javascript: 网页可见区域宽: document.body.clientWidth网页可见区域高: document.body.clientHeight网页可见区域宽: document.body.offsetWidth (包括边线的宽)网页可见区域高: docum 阅读全文
posted @ 2017-09-06 16:58 思考的大腿 阅读(399) 评论(0) 推荐(0) 编辑
摘要: 左右auto加个宽度。margin-left: auto; margin-right: auto; width:640px; 阅读全文
posted @ 2017-09-06 14:58 思考的大腿 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 新建一个文件夹“nodecmd”; 在nodecmd下新建文件夹bin; 在bin文件夹下新建JavaScript文件hello.js 向上回到nodecmd文件夹,新建文件index.js 文件夹结构如下 在nodecmd文件夹下,运行“npm init”; 按照命令行提示输入 name vers 阅读全文
posted @ 2017-08-28 14:14 思考的大腿 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 1. 首先安装vue插件,安装方法: setting --> plugin ,点击plugin,在内容部分的左侧输入框输入vue,会出现两个关于vue的插件,点击安装即可。安装完成后,就可以看到,新建文件时,会有vue文件的提示。 如下图所示: 2. 设置vue新建文件模板。 步骤: setting 阅读全文
posted @ 2017-08-07 10:41 思考的大腿 阅读(1998) 评论(0) 推荐(0) 编辑
摘要: 暂时使用给数组先赋值 [ ] ,然后重新赋值的方式解决。 此外,能够监听的数组变异方法 https://cn.vuejs.org/v2/guide/list.html#%E5%8F%98%E5%BC%82%E6%96%B9%E6%B3%95 还有就是set 阅读全文
posted @ 2017-08-03 11:15 思考的大腿 阅读(1240) 评论(0) 推荐(0) 编辑
摘要: 你除了要定宽度,还要加上这2个属性其中之一,就可以实现换行了。1. word-break:break-all;只对英文起作用,以字母作为换行依据2. word-wrap:break-word; 只对英文起作用,以单词作为换行依据(考虑到合理性,可优先使用第二个css属性。) 出现此问题是因为系统默认 阅读全文
posted @ 2017-08-02 11:34 思考的大腿 阅读(753) 评论(0) 推荐(0) 编辑
摘要: checkbox 全选\全部取消 $("#ChkAll").click(function(){ $("#divContent input[type='checkbox']").attr("checked",$(this).attr("checked"));}); 获取选中的checkbox的valu 阅读全文
posted @ 2017-07-27 22:32 思考的大腿 阅读(2140) 评论(0) 推荐(0) 编辑
摘要: <style type="text/css">.content{ width:20%; height:60px; border:1px solid red; text-align:center;}span{ height:100%; vertical-align:middle; line-heigh 阅读全文
posted @ 2017-07-26 15:20 思考的大腿 阅读(316) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 25 下一页