English 中文(简体)
如何给予小面积或小面积
原标题:How to give a div or IMG a minimum size

我有两幅50px的图像。 他们每把50px-by-50px divs锁起来。 当用户使用全页的冲积来缩小页数时,我不想让他们缩小。 实际上,我希望这些图像在违约时被分解到75px左右,我希望它们会缩小到至少50px。

谁能告诉我如何这样做? 曼 谷 我在某种程度上把图像推到了100%的干 the上,然后才在违约后使四舍五入到75px。 那么,我怎么能为 d子设定至少50px? 请让我举一个例子吗?

最佳回答

可在div标签上设定min-wdthmin-hels风格,并设定img tag,以覆盖div tag的全身和高度。

问题回答

暂无回答




相关问题
How to start to create an application GUI using C#?

HI! I am new to C# and plan to use it for my application GUI. I am trying to make my GUI similar to SPSS:http://www.spss.com/images/08/statistics_screens/ez_rfm-big.jpg Is this easy in C#? Is there ...

Automatic height of edit box

My shoes application has three items stacked on top of each other (with a stack, of course), in order: A banner An edit box Two buttons in a flow What I want to do is have the banner stay at it s ...

Search by using the keyboard in a list/grid - algorithm

I need to implement a custom search in a grid and I would like to find some user interface guidelines that explain the standard way to implement it. I mean this kind of search that is initiated by ...

UI And TcpClient Issue in vb.net

I m having some problems with a small ircbot i m writing. Basically I connect to the server using a tcpclient in a seperate class, which also runs on its own thread. I want to display the server text ...

UI Convention: Shortcut key for application exit? [closed]

Is there a convention for the shortcut keys for application exit? Some applications uses Alt+X some others use Ctrl+ X and Ctrl+Q. Applications like FF and IE doesnot assign a shortcut at all. So is ...

热门标签