摘要: jquery中prop和attr的区别prop:prop(name|properties|key,value|fn)**概述** 获取在匹配的元素集中的第一个元素的属性值。 随着一些内置属性的DOM元素或window对象,如果试图将删除该属性,浏览器可能会产生错误。 ... 阅读全文
posted @ 2016-05-10 15:52 程序猿的程 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 水平居中:通过设置父元素,让子元素内容居中:text-align:center;通过设置子元素本身,让子元素居中:margin:0 auto;以上方法生效的前提条件是子元素没有被float元素影响。垂直居中:一种方法是通过line-height属性,但是line-height是作用在父元素上,当子元... 阅读全文
posted @ 2016-01-03 01:04 程序猿的程 阅读(194) 评论(0) 推荐(0) 编辑
摘要: line-height:150% 是继承父元素的距离line-height:1.5 是计算各子元素的距离1、当line - height 为百分比时:body{font-size:14px; line-height:150%;}p{font-size:21px;} 结果就是:body{line-h... 阅读全文
posted @ 2015-12-31 20:18 程序猿的程 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 原文链接 http://blog.csdn.net/h5_queenstyle12/article/details/50437442 一、下载 搜索下载:ie-css3.htc,它是让IE浏览器支持CSS3表现的关键。 二、上面的是什么东西 首先说说.htc文件,.htc文件是个脚本文件,个人以为与 阅读全文
posted @ 2015-12-30 21:26 程序猿的程 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 原文链接 http://blog.csdn.net/h5_queenstyle12/article/details/50424862 百度源代码如下 <!Doctype html> <html xmlns=http://www.w3.org/1999/xhtml xmlns:bd=http://ww 阅读全文
posted @ 2015-12-29 11:08 程序猿的程 阅读(311) 评论(0) 推荐(0) 编辑