05 2016 档案
摘要:#div1 { width: 100px; height: 100px; border: 5px black solid; padding: 10px; margin: 10px; background: orange; } #div1-son { background: white; width:
阅读全文
摘要:1. 因为项目中经常会有利用jquery操作dom元素的增删操作,所以会涉及到dom元素的绑定事件方式,简单的归纳一下bind,live,delegate,on的区别,以便以后查阅。 bind() 适用所有版本,但是根据官网解释,自从jquery1.7版本以后bind()函数推荐用on()来代替。
阅读全文
摘要:http://www.toobug.net/article/how_to_design_front_end_template_engine.html http://barretlee.com/websocket-with-node/ 只有20行Javascript代码!手把手教你写一个页面模板引擎
阅读全文
摘要:good css site: https://css-tricks.com/ Gradient Borders https://css-tricks.com/examples/GradientBorder/
阅读全文
摘要:插件地址: http://jquery.malsup.com/cycle/ <div id="propaganda"><div id="pgdImg"><span id="arrow1" ><img src="images/pgd/arrow1.png" /></span><span id="arr
阅读全文
摘要:box-sizing属性可以为三个值之一:content-box(default),border-box,padding-box。 content-box,border和padding不计算入width之内 padding-box,padding计算入width内 border-box,border
阅读全文
摘要:<!DOCTYPE HTML><html> <head> <title>event cancel</title> </head> <body> <a href="https://www.baidu.com/">baidu</a> <div style="width: 400px; height: 3
阅读全文
摘要:http://www.codeproject.com/Tips/829025/How-to-Create-Custom-Filters-in-AngularJs Introduction Filter in Angular JS is a way that will help you to repr
阅读全文
摘要:创建自定义的指令 除了 AngularJS 内置的指令外,我们还可以创建自定义指令。 你可以使用 .directive 函数来添加自定义的指令。 要调用自定义指令,HTMl 元素上需要添加自定义指令名。 使用驼峰法来命名一个指令, runoobDirective, 但在使用它时需要以 - 分割, r
阅读全文