
前端开发
吾心无待
天行健,君子以自强不息
展开
-
部分 CSS 的浏览器兼容处理
除 IE 浏览器外都可识别 所有的 IE 浏览器可识别 仅 IE 6 浏览器可识别 !important:IE 6 不支持 问题 浏览器 解决方法 input[button | submit] 不能用 margin:0 auto; 居中 IE 8 为 input 添加 wid原创 2016-05-06 22:59:54 · 261 阅读 · 0 评论 -
Javascript 知识与经验(二)—— 基本对象类型
1、基本对象类型 Date: Date日期类型对象的构造函数如下: console.log(Date());//特殊且正确,使用了 window.Date 属性,该属性为返回当前时间的日期函数,注意这里的类型是函数而不是对象,是无法调用getDate() 等日期对象拥有的方法的 //console.log(Date().getDate()); 将报错 //consol原创 2016-12-19 23:47:16 · 267 阅读 · 0 评论 -
CSS样式 - 分页按钮样式
HTML<div class="pagination"> <span class="disabled" title="首页">首页</span> <span class="disabled" title="上一页">上一页</span> <span class="current">1</span><span data-ajax-url="/InvestmentProject/原创 2017-03-15 14:55:37 · 8503 阅读 · 1 评论 -
jQuery 插件(二) —— jQuery 模板
一、使用 script id="tmpl" type="text/x-jquery-tmpl"> class="title"> h3>${title}h3> div> div class="year"> {{if year > 3}} ${year} "oldcar.jpg"/>原创 2018-12-05 21:46:43 · 204 阅读 · 0 评论 -
jQuery 插件(一) —— jQuery 插件的写法和优化经验
//以;符开头和结尾用以防止多个js文件代码压缩后出错 //传入window,document 用以加快 jQuery 查询速度 ;(function($,window,document,undefined){ $.fn.pinkify = function(){ //jQuery 插件中 this 指向jQuery 元素 return this.each(原创 2018-12-05 21:47:34 · 146 阅读 · 0 评论