Skip to content

Instantly share code, notes, and snippets.

View QETHAN's full-sized avatar
🎯
Focusing

QETHAN QETHAN

🎯
Focusing
View GitHub Profile
@QETHAN
QETHAN / .clearfix
Created June 20, 2014 04:35
清除浮动
/*简洁版*/
.clearfix:before, .clearfix:after {
content:"";
display:table;
}
.clearfix:after{
clear:both;
overflow:hidden;
}
.clearfix{
@QETHAN
QETHAN / FlipInX
Created June 17, 2014 01:19
X轴翻转动画
.mod_pics .pic_list .pic:hover .shadow{
-webkit-animation:flipInX .6s .1s ease both;
-moz-animation:flipInX .8s .1s ease both;}
@-webkit-keyframes flipInX{
0%{-webkit-transform:perspective(400px) rotateX(90deg);
opacity:0}
40%{-webkit-transform:perspective(400px) rotateX(-10deg)}
70%{-webkit-transform:perspective(400px) rotateX(10deg)}
100%{-webkit-transform:perspective(400px) rotateX(0deg);
opacity:1}
移动设备的尺寸
ipod touch 4/iphone4/iphone4s
竖屏
width/height 320/356
横屏
width/height 480/208
iphone5
<div class="row-fluid">
<div class="span4 well">
<%= form_for @member, :html => {:class => "form-horizontal"} do |m| %>
<fieldset>
<legend>Member Form</legend>
<div class="control-group">
<%= m.label :title, :class => "control-label" %>
<div class="controls">
<%= m.text_field :title, :class => "input-xlarge" %>
</div>
ERROR: While executing gem ... (Gem::RemoteSourceException)
HTTP Response 302
据说这是因为gem版本太低了导致无法更新。
从网上查到更新gem代码,执行后还是报错。
C:\ruby>gem update --system
Updating RubyGems...
ERROR: While executing gem ... (Gem::RemoteSourceException)
HTTP Response 302
@QETHAN
QETHAN / Button-List-2.markdown
Created May 5, 2014 03:45
A Pen by Craig England.
@QETHAN
QETHAN / Simple-and-Cool-buttons.markdown
Created May 5, 2014 03:40
A Pen by Kaushalya Mandaliya.
@QETHAN
QETHAN / index.html
Created May 5, 2014 03:38
A Pen by Mark Cummins.
<!--[if lt IE 9]>
<script src="http://html5shiv-printshiv.googlecode.com/svn/trunk/html5shiv-printshiv.js"></script>
<![endif]-->
<section class="content">
<header>
<h1 class="page-title">pressable buttons</h1>
</header>
<a class="button" href="#">a</a>
<button class="button" type="button">button</button>