ul li 下图片文字垂直居中
来源:互联网 发布:如何注册香港域名 编辑:程序博客网 时间:2024/04/28 16:16
html代码如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> <title>首页</title> <link rel="stylesheet" type="text/css" href="css/index.css" /></head><body> <div id="page"> <div id="header"> <div id="contact" class="contact"> <ul> <li class="contact-message"><a href="#"><em></em>cqm8@163.com</a></li> <li class="contact-phone"><a href="#"><em></em>+86 898 234566</a></li> </ul> </div> </div> <div id="content"> <div id="main" class="main"> </div> </div> <div id="footer"> </div> </div></body></html>
.contact ul li { float: left; display: inline; padding: 0 10px; list-style-type: none;}.contact a { font-size: 12px; color: #909090; display: block; text-decoration: none; height: 15px; line-height: 15px;}.contact em { float: left; overflow: hidden; margin-right: 5px;}.contact-message em { width: 15px; height: 11px; margin-top: 2px; background: url(../img/201412201814_03.png) no-repeat;}.contact-phone em { width: 9px; height: 15px; background: url(../img/201412201814_04_03.png) no-repeat;}
0 0
- ul li 下图片文字垂直居中
- ul li图片文字混排不加overflow:hidden,使文字垂直居中(完美版)
- <ul><li></li></ul>之间的文字居中水平显示
- 各浏览器下图片垂直居中的方法
- html下图片居中
- ul li 居中显示
- ul li 居中排列
- a标签下图片居中
- ul 标签 li 居中显示
- li中的图片垂直居中
- HTML li如何垂直居中
- HTML li如何垂直居中
- ul中li的居中问题
- ul里面如何让li居中
- ul,li不能左右居中的问题
- LI标签在Ul中居中显示
- 使ul的li元素居中对齐
- ul中li标签居中问题
- JS在function前面加上"+"的含义
- c++与c#类型对照
- git pull
- 实用linux命令整理
- git fetch
- ul li 下图片文字垂直居中
- javascript系列教程
- Git 冲突处理
- Java基础_13_反射机制
- leetcode第18题——**4Sum
- JAVA中String类的intern()方法的作用
- 浅析gerrit数据库
- DLL(动态库)导出函数名乱码含义
- 初学unity(让场景动起来)