Update with prettier code
须─老兄,你的样子,你正在试图做的是显示tabular data
如果是这样的话,没有什么错,其实使用的实际table--,不这样做会是错误的。
HTML
<section class="container">
<header>
<h1 class="title">Title</h1>
</header>
<ul class="point-container">
<li class="day"><h1>1<span>st</span></h1></li>
<div class="points">
<li class="max">Max</li>
<li class="close">Close</li>
</div>
<div class="results">
<li class="totals">Total</li>
<li class="thirty-points">30 points</li>
<li class="fifty-points">50</li>
</div>
</div>
</section>
CSS
// ==================
// base
//
//
html{ font-size: 62.5%; }
body{
font-size: 1.6rem;
font: normal normal 100 1.6rem "Helvetica Neue", sans serif;
background-color: black;
}
.container{
width: 90%;
color: white;
margin: auto;
}
// ==================
// layout
//
//
body,
.container,
.points,
.results,
.point-container{
display: flex;
}
.points,
.container{
flex-flow: column;
}
.results{ flex-flow: row;}
.day,
.results li{
flex: 1;
}
.points,
.results{
flex:3;
}
.results li{
text-align: center;
}
// ==================
// colors
//
//
.title{ background-color: #008001; }
.day{ background-color: #00ff00; }
.max{ background-color: blue; }
.close{ background-color: purple; }
.totals{ background-color: orange; }
.thirty-points{ background-color: red; }
.fifty-points{ background-color: gold; }
你能不能给我们你的想法的形象?我不遵循你的描述。 – 2012-07-19 15:35:37
你知道我可以上传图片的一面吗? @WouterJ – ragebunny 2012-07-19 15:36:55
我有点迷路,但是这里有一个刺戳我认为你的意思:http:// jsfiddle。净/ j08691/DphXz/68 /。如果这是正确的,让我知道,我会张贴它作为答案。 – j08691 2012-07-19 15:37:59