摘要: 一、JS中的数据类型5种基本数据类型:Number、String、Boolean、Null、Undefined1种复杂数据类型:Object(Array、Function、Reg、Date...)1.typeof语法:typeof num;结果:Number/String/Boolean/Undefined/Function正常、null/Array/Reg/Date-->Object2.inst... 阅读全文
posted @ 2017-05-06 09:44 enginex 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 图片垂直居中:IE8+支持方法1.box { line-height:300px; text-align:center;}.box>img { vertical-align:middle;}方法2:添加空元素 test 多行文本垂直居中:IE8+支持方法1:.box {line-height:300px;}.box>span { display... 阅读全文
posted @ 2017-05-05 16:33 enginex 阅读(775) 评论(0) 推荐(0) 编辑
摘要: 参考链接:http://www.itdadao.com/articles/c15a1260810p0.html 阅读全文
posted @ 2017-05-05 09:42 enginex 阅读(1003) 评论(0) 推荐(0) 编辑
摘要: 问题代码: Document 方法1:设置image的display为blockp { border:1px solid red; background:#eee; }#img2 { display:block; width:200px; height:200px; }方法2:修改image的vertical-align为非默认值(middle/top/bottom)... 阅读全文
posted @ 2017-05-05 09:30 enginex 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 一、边框做三角形 div1是空元素 #div1{ width:0px; height:0px; border:25px solid transparent; border-top-color:#f00; } #div1{ width:0px; height:0px; border:25px soli 阅读全文
posted @ 2017-05-04 15:56 enginex 阅读(431) 评论(0) 推荐(0) 编辑
摘要: 一、使用CSS的方式 1.内联/行内样式: <divstyle="color:red;"></div> 2.内部样式表:定义在<head>中,对当前网页有效 <style> div { color:red; } </style> 3.外部样式表:引入css文件 <style> div { color 阅读全文
posted @ 2017-05-04 15:00 enginex 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 一、表单元素 1.input:空标记 属性: type:文本框、密码框、单选按钮、复选框 value:当前表单元素的值,可以是提交给服务器的值,也可以是默认显示的初始值 name:名称,要提交给server使用 id:唯一标识,只能在当前页面使用,server不能用 disabled:禁用控件 文本 阅读全文
posted @ 2017-05-04 13:41 enginex 阅读(640) 评论(0) 推荐(0) 编辑
摘要: 一、定义锚点 二、链接锚点 1 <a href="#锚点名称">内容</a> //同一页面锚点 2 <a href="页面URL#锚点名称">内容</a> 三、表格 1.基本结构: 1 <!doctype html> 2 <html> 3 <head> 4 <meta charset="utf-8" 阅读全文
posted @ 2017-05-04 09:22 enginex 阅读(951) 评论(0) 推荐(0) 编辑
摘要: 一、安装软件 1.安装Nodejs:https://nodejs.org/en/ cmd验证:node -v 2.安装cnpm(npm镜像): npm i cnpm -g cmd验证:cnpm -v 3.安装cordova和Ionic: cnpm i cordova ionic -g cmd验证:c 阅读全文
posted @ 2017-05-03 17:44 enginex 阅读(362) 评论(0) 推荐(0) 编辑
摘要: CMD:用于指定一个容器启动时要运行的命令 注意:a.docker run命令可以覆盖CMD命令;b.在dockerfile中只能指定一条CMD指令,多条CMD指令也只有最后一条会被执行 ENTRYPOINT:不容易在启动容器时被覆盖;docker run命令行中指定的任何参数会被当作参数再次传递给 阅读全文
posted @ 2017-05-03 17:31 enginex 阅读(146) 评论(0) 推荐(0) 编辑