当linkbutton的文本为空时如何固定linkbutton的高度和宽度 [英] how to fix height and width of linkbutton when text of linkbutton is empty

查看:106
本文介绍了当linkbutton的文本为空时如何固定linkbutton的高度和宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序中有30个linkbutton.linkbutton显示数据库中的值.一些linkbutoon没有数据或显示数据,因为在数据库中没有数据.一些链接按钮显示数据.我固定了每个链接按钮的高度和宽度.但是当页面运行时,包含数据的链接按钮的高度和宽度与我定义的高度和宽度相同,但是空的链接按钮没有确定高度和宽度,与之相比,按钮的高度和宽度是如此之小.包含数据的链接按钮.我希望每个linkbutton都应具有固定的高度和宽度,以显示或不显示数据.

谢谢与问候
Manohar

I have 30 linkbutton in my application.The linkbutton display the value from database.some linkbutoon does not have data or show data because in database does''nt have data. some link button display data . i fixed height and width of every link button.but when page run the linkbutton which contains data has same height and width which i defined but empty link button has not fix height and width the height and width of button is so small according in compare to linkbutton which contains data. i want every linkbutton should have fix height and width wheater they data display or not.

Thanks and Regards
Manohar

推荐答案

我认为您需要尝试将此CSS设置为链接按钮...

I think you need to try to set this css to your link button...

display: inline-block;
min-width: 45px;


这篇关于当linkbutton的文本为空时如何固定linkbutton的高度和宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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