Another button list with css3 transitions
A Pen by Craig England on CodePen.
/*简洁版*/ | |
.clearfix:before, .clearfix:after { | |
content:""; | |
display:table; | |
} | |
.clearfix:after{ | |
clear:both; | |
overflow:hidden; | |
} | |
.clearfix{ |
.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 |
<!--[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> |