文字在表格位置处理—line-height
2016-04-11 17:33
330 查看
css:.main-wrap li{
float:left;
height:300px;
background-color: #fff;
border-radius: 4px;
box-shadow: 0 1px 4px #a4a4a4;
margin: 0 40px 40px;
position: relative;
width: 28%;
}
.done,.unfinished{
float:left;
width:210px;
height:95px;
text-align:center;
background:#ecf0f1;
}
.done:hover,.unfinished:hover,.done.current{
background:#ffffff;
}
.done.current p{
color:red;
}
.main-wrap table{
overflow:hidden;
clear:both;
}
.number{
font:Fixedsys, "Microsoft YaHei UI", "Microsoft YaHei UI Light";
text-transform:uppercase;
font-size:34px;
color:#95a5a6;
margin-top:20px;
}
.text{
margin-top:15px;
font:Fixedsys, "Microsoft YaHei UI", "Microsoft YaHei UI Light";
text-transform:uppercase;
font-size:12px;
color:#95a5a6;
}
.text-group tr{
border-bottom: 1px solid #dee1e2;
width:100%;
}
.text-group tr td {
padding-left: 20px;
color: #7f8c8d;
font-size: 13px;
line-height:50px;
}
html:<ul class="play cf">
<li>
<a href="#"><span class=" done current"><p class="number">12</p><p class="text"> done course</p></span></a>
<a href="#"><span class="unfinished"><p class="number">3</p><p class="text"> unfinished course</p></span></a>
<table class="text-group">
<tr><td>Basic for UX Designer </td></tr>
<tr><td>10 steps to improve your wireframe </td></tr>
<tr><td>A Better Way To Request App Ratings </td></tr>
<tr><td>How To Speed Up Your WordPress Website</td></tr>
<tr> <td ><a><span></span></a></td></tr>
</table>
</li>
float:left;
height:300px;
background-color: #fff;
border-radius: 4px;
box-shadow: 0 1px 4px #a4a4a4;
margin: 0 40px 40px;
position: relative;
width: 28%;
}
.done,.unfinished{
float:left;
width:210px;
height:95px;
text-align:center;
background:#ecf0f1;
}
.done:hover,.unfinished:hover,.done.current{
background:#ffffff;
}
.done.current p{
color:red;
}
.main-wrap table{
overflow:hidden;
clear:both;
}
.number{
font:Fixedsys, "Microsoft YaHei UI", "Microsoft YaHei UI Light";
text-transform:uppercase;
font-size:34px;
color:#95a5a6;
margin-top:20px;
}
.text{
margin-top:15px;
font:Fixedsys, "Microsoft YaHei UI", "Microsoft YaHei UI Light";
text-transform:uppercase;
font-size:12px;
color:#95a5a6;
}
.text-group tr{
border-bottom: 1px solid #dee1e2;
width:100%;
}
.text-group tr td {
padding-left: 20px;
color: #7f8c8d;
font-size: 13px;
line-height:50px;
}
html:<ul class="play cf">
<li>
<a href="#"><span class=" done current"><p class="number">12</p><p class="text"> done course</p></span></a>
<a href="#"><span class="unfinished"><p class="number">3</p><p class="text"> unfinished course</p></span></a>
<table class="text-group">
<tr><td>Basic for UX Designer </td></tr>
<tr><td>10 steps to improve your wireframe </td></tr>
<tr><td>A Better Way To Request App Ratings </td></tr>
<tr><td>How To Speed Up Your WordPress Website</td></tr>
<tr> <td ><a><span></span></a></td></tr>
</table>
</li>
相关文章推荐
- 剑指offer:把二叉树打印成多行
- Android官方开发文档Training系列课程中文版:管理音频播放之控制APP的音量与播放
- Rational Software Architect 的介绍和基础教程
- flex学习进度1
- LeetCode 230 -Kth Smallest Element in a BST ( JAVA )
- 【OpenCV学习笔记 003】图像的载入、显示和输出
- Linux shell 实现多线程
- 函数调用方式__stdecl _stdcall _fastcall __thiscall介绍
- Android Fragment应用实战
- Intellij GIT设置 图文
- call to OpenGL ES API with no current context (logged once per thread)
- hdoj1241 Oil Deposits
- mac os终端颜色显示及vi配置 .
- 函数调用方式--__thiscall调用方式和__cdecl,__stdcall有什么区别
- WebService到底是什么?
- Android的View生命周期
- varnish
- ovirt挂载多存储环境时注意事项
- Qt移动应用开发(三):使用精灵图片实现帧动画
- 微信支付h5支付(v3)