html css 怎么使img和a标签在一个行内元素中间对齐
2017-10-18 15:27
686 查看
html css 怎么使img和a标签在一个行内元素中间对齐
答案是:#box ul.games li img{vertical-align: middle;} 这行很重要哦。
?
html css 怎么使img和a标签在一个行内元素中间对齐
答案是:#box ul.games li img{vertical-align: middle;} 这行很重要哦。
?
.top_bj{ width:100%; height:36px; overflow:hidden; background:url(../images/top_bj.gif);} .top_content{ width:100%; margin:0px auto; height:36px; overflow:hidden;} .top_logo{ width:170px; float:left;} .all_icon{float:left; padding:7px; width:16px; height:16px; overflow:hidden;} .all_black,.all_black a:link,.all_black a:visited{font-size: 12px; line-height:30px; font-weight: normal; color: #595959; text-decoration: none; font-family:Arial, Helvetica, sans-serif;} .all_black a:hover{font-size: 12px; line-height:30px; font-weight: normal; color: #0e6cb0; text-decoration: none; font-family:Arial, Helvetica, sans-serif;} .black,.black a:link,.black a:visited{font-size:12px;line-height: 36px;font-weight: normal;color: #464646;text-decoration: none; font-family:Arial, Helvetica, sans-serif;} .black a:hover{font-size:12px;line-height: 36px;font-weight: normal;color: #03C;text-decoration: none; font-family:Arial, Helvetica, sans-serif;} .red,.red a:link,.red a:visited{font-size:12px;line-height: 36px;font-weight: normal;color: #F00;text-decoration: none; font-family:Arial, Helvetica, sans-serif;} .red a:hover{font-size:12px;line-height: 36px;font-weight: normal;color: #03C;text-decoration: none; font-family:Arial, Helvetica, sans-serif;} #box{display:none;width:593px; float:right; overflow:hidden; margin:0px auto; padding-right:100px;} #box .div01{width:593px; overflow: hidden; position:absolute; z-index:999; top:30px;} #box .div01 .border{width:100%; overflow:hidden;} #box ul.content01{width:591px; background:#FFF; overflow: hidden; border:solid 1px #9c9c9c; border-bottom:none;border-top:none;list-style:none;} #box ul.gtype{float: left; width: 80px;} #box ul.games{float: left; width: 509px;} #box ul.games li{float: left; width: 100px;} #box ul.games li img{vertical-align: middle;} #box ul.games li a{padding-left: 5px;}
相关文章推荐
- html css 怎么使img和a标签在一个行内元素中间对齐
- HTML中input和img标签元素同行水平对齐
- Html中发现a标签包含一个img标签,对齐方式没有居中问题
- css 怎么把一个元素藏起来
- HTML标签换行导多个inline-block元素不能在同一行,img之间会有空格
- CSS布局中HTML标签元素分类
- html img标签显示一个默认图片
- html css 内部有浮动元素的div的高度没有被撑开怎么办【转载】
- 批量处理 Html img 标签,给 img 标签包裹一个 <a href="${url}"> 标签,用来实现“查看大图”的功能
- 在CSS中,html中的标签元素三种不同的类型
- html表格、表单元素、img标签、图像映射技术、html4引入flash
- HTML:img标签usemap,一个图片中添加多个链接
- html a标签中的文字怎么居中对齐
- html标签怎么使用CSS设置宽度?
- 根据HTML+CSS完成一个三列布局,左右侧栏宽为180px,高为300px;中间栏自适应,高为300px;中间栏子元素(宽高不确定)实现水平、垂直居中。
- HTML&CSS基础学习笔记1.25-input标签的选择文件和隐藏元素
- h5中 <!DOCTYPE html>标签问题,div里面如果装有一个img下边会有2px间隙
- html表格、表单元素、img标签、图像映射技术、html4引入flash
- 【Div+CSS笔记】 0x01 html常用标签元素
- DIV+CSS布局问题:一个宽度不确定的DIV里面放三个水平对齐的DIV,左右两个DIV宽度固定为150px,中间那个DIV充满剩余的宽度