开发者

Stretching Images In ASP.NET

My image has a width of 1000p开发者_高级运维x. If i'm using style="width:800px" it works great but if I use Style="width:1500px". it doesn't stretch my image and leaves it at 1000px.

how do I make my picture stretch?


First, this is an HTML and css question (client side), not specifically an asp.net question, so the answer will apply regardless of the server-side technology.

If you want it to stretch, you need to set both the height and width explicitly. If you specify one or the other, the browser automatically adjusts the one that's not specified to maintain proportions.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜