如何在Asp.Net中设置背景图像大小的对齐方式 [英] How Can I Set A Alignment For Background Image Size In Asp.Net

查看:152
本文介绍了如何在Asp.Net中设置背景图像大小的对齐方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在asp.net中开发了一个代码,因为我有一个5个图标的背景图片,我需要更改前面的文字,如果前面的文字超过一些字符我的背景图像不合适我应该怎么做?

解决方案

尝试设置

 background-size:80px 80px ;  //  一些固定的高度和宽度 
(OR)
background-size: auto;



欲了解更多信息,请查看此内容

CSS背景大小


I have developed a code in asp.net in that i have a background image for 5 icons i need to change the front text, if the front text exceeds for more than some character my back ground image is not come in a proper alignment so what i should have to do?

解决方案

Try setting

background-size:80px 80px; //some fixed height and width 
 (OR)
background-size:auto;


For more info, have a look at this
CSS background-size


这篇关于如何在Asp.Net中设置背景图像大小的对齐方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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