摘要: 水平居中设置-行内元素 text-align:center如果被设置元素为文本、图片等行内元素时,水平居中是通过给父元素设置text-align:center水平居中设置-定宽块状元素 margin: 0 auto;满足定宽和块状两个条件的元素是可以通过设置“左右margin”值为“auto”来实现... 阅读全文
posted @ 2015-03-18 16:22 ElvinLong 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 当尺寸为 0 像素时,0 之后不需要使用 px 单位,因为 0 就是 0,无论单位是什么。p { font-size:0 }如果值为若干单词,则要给值加引号:p {font-family: "sans serif";}border-style(边框样式)常见样式有:dashed(虚线)| ... 阅读全文
posted @ 2015-03-10 10:38 ElvinLong 阅读(147) 评论(0) 推荐(0) 编辑
摘要: inline-block元素特点:1、和其他元素都在一行上;2、元素的高度、宽度、行高以及顶和底边距都可设置。inline内联元素特点:1、和其他元素都在一行上;2、元素的高度、宽度、行高及顶部和底部边距不可设置;3、元素的宽度就是它包含的文字或图片的宽度,不可改变。block块级元素特点:1、每个... 阅读全文
posted @ 2015-03-10 10:21 ElvinLong 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 1、当行内元素之间有“回车”、“tab”、“空格”时就会出现间隙。解决方法: 1、写在一行,之间不要有空格之类的符号。 123333344444555555 2、使用font-size:0div{font-size:0;}a,span,em{font-size:16px;} 阅读全文
posted @ 2015-03-10 09:58 ElvinLong 阅读(243) 评论(0) 推荐(0) 编辑
摘要: $("#divset").css("font-weight", "bold");根据元素名找到了一个元素,并将它显示的字体加粗。$("#btntest").attr("disabled","true");通过元素名称查找按钮,并通过使用attr()方法将它设置为不可用element 选择器$(“el... 阅读全文
posted @ 2015-03-01 21:45 ElvinLong 阅读(140) 评论(0) 推荐(0) 编辑
摘要: http://codepen.io/http://www.css88.com/doc/underscore/ http://underscorejs.org/http://angular-ui.github.io/ui-utils/http://angular-ui.github.io/bootst... 阅读全文
posted @ 2015-01-30 15:26 ElvinLong 阅读(136) 评论(0) 推荐(0) 编辑
摘要: http://www.zouyesheng.com/angular.html 阅读全文
posted @ 2015-01-27 18:46 ElvinLong 阅读(104) 评论(0) 推荐(0) 编辑
摘要: https://proto.io/freebies/onoff/ 阅读全文
posted @ 2015-01-27 18:06 ElvinLong 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 但多数情况下,我们希望如果没有符合条件记录的情况下,我们希望它返回0,而不是NULL,那么我们可以使用例如下面的方法来处理:SELECT COALESCE(SUM(isnull(filed,0)), 0) as [filed1] FROM table1行了,这下就不用费事去处理返回结果是否为NULL... 阅读全文
posted @ 2015-01-22 14:25 ElvinLong 阅读(641) 评论(0) 推荐(0) 编辑
摘要: https://github.com/danialfarid/angular-file-upload 阅读全文
posted @ 2015-01-21 11:37 ElvinLong 阅读(109) 评论(0) 推荐(0) 编辑