上一页 1 2 3 4 5 6 7 ··· 15 下一页
摘要: 1.创建对象 person=new Object();person.firstname="John";person.lastname="Doe";person.age=50;person.eyecolor="blue"; 或person={firstname:"John",lastname:"Doe 阅读全文
posted @ 2016-10-19 16:31 浪味小仙女 阅读(173) 评论(0) 推荐(0)
摘要: 当网页被加载时,浏览器会创建页面的文档对象模型(Document Object Model)。 JavaScript 能够改变页面中的所有 HTML 元素 JavaScript 能够改变页面中的所有 HTML 属性 JavaScript 能够改变页面中的所有 CSS 样式 JavaScript 能够 阅读全文
posted @ 2016-10-19 15:45 浪味小仙女 阅读(195) 评论(0) 推荐(0)
摘要: 因为跟别的语言很像,所以只记录要注意的地方 1.== 和 的区别 要求类型也相等 "5"==5 = ture "5" 5 = false 2.数字和字符串 相加都被转成字符串 5+"5"=55 相减都转成数字 "101"-"10"=91 3.函数 function functionname(a,b) 阅读全文
posted @ 2016-10-17 20:56 浪味小仙女 阅读(168) 评论(0) 推荐(0)
摘要: Chrome 和 Safari 要求前缀 -webkit- 版本. Internet Explorer 10, Firefox, 和 Opera支持transform 属性. Internet Explorer 9 要求前缀 -ms- 版本. 1.2D 3D 转换 2D: transform: tr 阅读全文
posted @ 2016-10-17 16:29 浪味小仙女 阅读(252) 评论(0) 推荐(0)
摘要: 1.元素选择器 p{} h1,h2{} 2.通配符 *{} 3.类选择器 .class{} 4.多类选择器 class = "a b" 继承.a.b{}和.a{}和.b{}的效果 5.id选择器 #id{} 6.id和class的区别 id只可以使用一次 class可以使用多次 id选择器不能结合使 阅读全文
posted @ 2016-10-12 17:46 浪味小仙女 阅读(114) 评论(0) 推荐(0)
摘要: 1.盒子模型 Margin(外边距) - 清除边框外的区域,外边距是透明的。 Border(边框) - 围绕在内边距和内容外的边框。 Padding(内边距) - 清除内容周围的区域,内边距是透明的。 Content(内容) - 盒子的内容,显示文本和图像。 最终元素的总宽度计算公式是这样的: 总元 阅读全文
posted @ 2016-10-12 16:09 浪味小仙女 阅读(226) 评论(0) 推荐(0)
摘要: 1.css链接 a:link - 正常,未访问过的链接 a:visited - 用户已访问过的链接 a:hover - 当用户鼠标放在链接上时 a:active - 链接被点击的那一刻 注意: a:hover 必须跟在 a:link 和 a:visited后面 a:active 必须跟在 a:hov 阅读全文
posted @ 2016-10-10 16:25 浪味小仙女 阅读(262) 评论(0) 推荐(0)
摘要: css背景 1. background-color:#6495ed; 2. background-image:url('bgdesert.jpg'); 3. background-repeat:repeat-x;重复 4. background-attachment滚动 5. background- 阅读全文
posted @ 2016-10-09 18:59 浪味小仙女 阅读(236) 评论(0) 推荐(0)
摘要: 1.Text Fields <form>First name: <input type="text" name="firstname"><br> Password: <input type="password" name="pwd"></form> 2.Radio Buttons name必须一样才 阅读全文
posted @ 2016-10-09 13:39 浪味小仙女 阅读(138) 评论(0) 推荐(0)
摘要: 1.div 2.table 阅读全文
posted @ 2016-10-09 13:09 浪味小仙女 阅读(124) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 15 下一页