li对象图像显示问题 [英] li object Image display problem

查看:60
本文介绍了li对象图像显示问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨我有一个不同的问题,它正在消磨我的时间..在我的表行中,其中一个单元格有li对象...并将背景显示为图像...,但问题是它只显示了一半图像....

即使我增加了行的高度......它也没有用......



谢谢你帮助。



我的代码

Hi I have a different problem, it's killing my time..Within my table rows, one of cell is having li object... and showing the background as image ..., But the problem is its only showing the half of the image....
even I increased the height of the row... it doesnot worked...

Thanks for the helps.

My Codes

</tr>
            <tr style="height:110px;">
                <td><li class="MyLiClass"><a href="services.aspx" class="MyAClass";>Backup & Recovery</a></li></td>
                <td valign="top" align="left" > 
                <div id="VisitDvn" style="width:100%; height:110px; margin-removed0; margin-removed0; removed 0px;">
                    <ul>
	                    <li class="VisitLi"><a href="default.aspx" style="text-decoration:none; color:Silver;">Linked In</a></li>
                    </ul>
                </div>
                 </td>
</tr>.





和我的CSS代码





And My CSS Code

#VisitDvn {display:block; text-decoration:none; color:Silver; background-color:#606060; font-family:Courier; font-size: 10px; list-style:none; }
#VisitDvn ul{margin:0px; padding:0;list-style-type:none;width:auto; height:110px;}
#VisitDvn ul li{display:block;margin:0 0 0 0; height: 110px; width: 80px;}
#VisitDvn li.VisitLi a{ background: url('MyImages/Linked_in_24.png') no-repeat left top;}

推荐答案

hi



要么删除div VisitDvn的高度,要么将overflow属性设置为true。
hi

either remove the height for div VisitDvn or set overflow property to true in style.


我看不出你是否也照顾了填充(表中既没有也没有li项目)......

建议你也给予治疗





另外 - 你在太多元素上设置了 height (TR为DIV和LI)。





干杯,

Edo
I can't see if you also took care of the Padding (neither in the table nor the li items)...
Suggest you give padding a treatment as well.


Also - you have set height on too many elements (the TR the DIV and the LI).


Cheers,
Edo


这篇关于li对象图像显示问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆