Created
November 30, 2012 07:46
-
-
Save songxiaofeng1981/4174374 to your computer and use it in GitHub Desktop.
css:table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class='example'> | |
<table cellspacing='0'> | |
<thead> | |
<tr class='odd'> | |
<th>Title</th> | |
<th>One</th> | |
<th>Two</th> | |
<th>Three</th> | |
<th>Four</th> | |
<th>Row Total</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr class='even'> | |
<th>Single</th> | |
<td class='numeric'>1.0</td> | |
<td class='numeric'>2.0</td> | |
<td class='numeric'>3.0</td> | |
<td class='numeric'>4.0</td> | |
<td class='numeric'>10.0</td> | |
</tr> | |
<tr class='odd'> | |
<th>Tens</th> | |
<td class='numeric'>10.0</td> | |
<td class='numeric'>20.0</td> | |
<td class='numeric'>30.0</td> | |
<td class='numeric'>40.0</td> | |
<td class='numeric'>100.0</td> | |
</tr> | |
</tbody> | |
<tfoot> | |
<tr class='even'> | |
<th>Total</th> | |
<td class='numeric'>11.0</td> | |
<td class='numeric'>22.0</td> | |
<td class='numeric'>33.0</td> | |
<td class='numeric'>44.0</td> | |
<td class='numeric'>110.0</td> | |
</tr> | |
</tfoot> | |
</table> | |
</div> | |
@import "compass/utilities/tables/borders"; | |
.example { | |
table { | |
@include inner-table-borders(1px, #7a98c6); | |
@include outer-table-borders(2px); }} | |
http://www.ruanyifeng.com/blog/2012/11/compass.html | |
http://www.ruanyifeng.com/blog/2012/06/sass.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment