自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(16)
  • 资源 (1)
  • 收藏
  • 关注

转载 详解rotate3()

转自http://tympanus.net/codrops/css_reference/rotate3d/The rotate3d() function is a 3D transform function that is used to rotate an element in three-dimensional space.The element is rotated by

2016-05-26 10:44:28 3874

原创 html中的换行符也占空间,如何解决

如上图:parent的width:600px; child1和child2的width:300,display:inline-block; 我们希望它们并排显示,但为什么会换行呢?<html lang="en"><head> <meta charset="UTF-8"> <title>Document</title> <link rel="styleshe

2016-05-26 10:06:52 4062

转载 jsbin-jsfiddle-or-codepen-which-one-to-use-and-why

There are lots of css – js playgrounds now in the market, and the most popular ones are JSbin (by Remy Sharp), JSfiddle (by Oskar Krawczyk), codepen (by Chris Coyier, Tim Sabat and Alex Vasquez). So

2016-05-25 15:46:57 717

原创 边长、边数可配置的旋转多面体

效果点击这里 https://jsbin.com/kakoxe/edit?html,css,js,output 或者看这里 http://codepen.io/GitKou/pen/GqKZGW (这里加了rotate3d(1,1,0,100deg),使得沿对角线转)css3画出来的多面体,这个多面体的每个侧面都是正方形,底面是个边数可配置的多面体 buildPolyhedron(10, 300

2016-05-25 14:44:31 1058

原创 css垂直水平居中小技巧

1.https://www.smashingmagazine.com/2013/08/absolute-horizontal-vertical-centering-css/.Center-Container { position: relative;}.Absolute-Center { width: 50%; height: 50%; overflow: auto; marg

2016-05-24 17:07:07 487

原创 css实现正方形div的3种方式

1.CSS3 vw 单位 1vw = 1% viewport width<div class="vw">hello,viewport</div>.vw { width: 50%; height: 50vw; background: #ccc; }2.padding-bottom <div class="placeholder"></div

2016-05-24 16:33:51 32447

转载 Ruby环境SCSS编译中文出现Syntax error: Invalid GBK character

解决办法:找到Ruby的安装目录,里面也有sass模块,如这个路径:C:\Ruby21-x64\lib\ruby\gems\2.1.0\gems\sass-3.4.8\lib\sass 在该路文件里面 engine.rb,添加一行代码:require … require ‘sass/supports’Encoding.default_external = Encoding.find(‘utf-8

2016-05-24 14:08:18 797

原创 Js中的空值判断

var a= "";var b = 0;var c = false;a==b;//true,因为""和0在js中逻辑都是falsea==c;//trueb==c;//true

2016-05-23 18:43:06 1540

转载 AngularJs ng-repeat 必须注意的性能问题

转自 http://www.cnblogs.com/MigCoder/p/3930264.html?utm_source=tuicool&utm_medium=referralAngularJs 的 ng-repeat 让我们非常方便的遍历数组生成 Dom 元素,但是使用不当也会有性能问题。在项目中我们使用 ng-repeat 加载完一个列表后,如果再次请求数据,然后过滤列表,代码

2016-05-17 09:56:14 5353

原创 在{{}}表达式中用Math

直接{{Math.floor(yourNum)}}这样是行不通的, 因为ng不认识Math, 要在js里面写$scope.Math = window.Math;

2016-05-13 15:52:13 1502

原创 多个数组求交集 js

如下,求profession对应的对象的数组的交集var profession = ["cat", "dog","pig","duck"];var a = { "cat": [1, 2, 3, "12", 4, 22, 11], "pig": [2, 3, "12"], "dog": [2, 4, 3, "12", 11], "duck":[2,11]};var jiaoji

2016-05-12 19:14:15 6071

原创 两个很好的angular调试工具-——batarang(stable)和ng-inspector

下面是batarang,选旧版本的安装,新版本没人维护,可以看scope层级关系,还有每个ng表达式的性能等等,支持划范围看scope 右边是ng-insepector,方便直观看scope

2016-05-06 13:23:47 9183

转载 html中常用到的转义字符,愿对大家有用

http://www.w3cfuns.com/notes/17462/2846fa9a634373902c9dccbdf81cbbcc转换字串中的字符.字符 实体名称 实体数字 描述♠ ♠ ♠ 黑桃♣ ♣ ♣ 梅花♥ ♥ ♥ 红桃,心♦ ♦ ♦ 方块牌◊ ◊ ◊ 菱形† † † 匕首

2016-05-04 21:20:18 3151

转载 input type="button"和button区别

转自 https://davidwalsh.name/html5-buttonsOne of the things I love about CSS is how easy it is to make one element look like another. In the example above, the first element is an anchor, the second

2016-05-04 15:40:05 1622

转载 CSS3圆角详解

作者: 阮一峰日期: 2010年12月 9日CSS3是样式表(style sheet)语言的最新版本,它的一大优点就是支持圆角。网页设计大师Nicholas Zakas的最新文章,清晰易懂地解释了CSS3圆角的各个方面,非常值得学习。以下就是我翻译的中文版。=========================================CSS3圆角

2016-05-04 10:59:48 351

原创 问题总结(ng+bootstrap+css)

1.tab,ng无嵌套路由,tab也不需要用到。用angular-ui-bootstrap的tabset, tabcontent分别是不同的ng-include。不同的controller。 2.boostrap的datetimepicker,我不在外面套一层class=“form-group”,浏览器就奔溃出错? 3.boostrap的col嵌套col,还是以12为准。 4.ng-class

2016-05-03 10:20:55 1229

雅克比迭代法 c语言实现(计算方法)

调试通过,绝对好用,我们的计算方法实验,你值得拥有,c语言实现的!

2013-10-24

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除