EXTjs中图片格式显示问题

1、这是url加载一个图片地址,显示图片html:'<imgborder="0"src="<%=basePath%>images/+"<%=request.getPara... 1、这是url加载一个图片地址,显示图片
html: '<img border="0" src = "<%=basePath%>images/+"<%=request.getParameter("url")%>" width="600" height="468"/>'
这个能规定图片的大小格式
2、这是根绝传递的参数动态获取图片url,来显示图片
{
layout: 'column',
xtype: 'container',
items: [{
columnWidth:.5,
layout: 'anchor',
xtype : 'box',
id:'a',
autoEl : {
tag : 'img',
src: '<%=basePath%>'+"/"+"<%=request.getParameter("url")%>"
}
}
这个我怎么规定图片的大小啊。求高手指点
展开
 我来答
jcapricorn
2011-12-09 · 超过35用户采纳过TA的回答
知道答主
回答量:88
采纳率:0%
帮助的人:106万
展开全部
setSize( Mixed width, Mixed height ) : Ext.BoxComponentSets the width and height of this BoxComponent. This method fires the resize event. This method can accept either wid...
Sets the width and height of this BoxComponent. This method fires the resize event. This method can accept either width and height as separate arguments, or you can pass a size object like {width:10, height:20}.
Parameters:
width : Mixed
The new width to set. This may be one of:
A Number specifying the new width in the Element's Ext.Element.defaultUnits (by default, pixels).
A String used to set the CSS width style.
A size object in the format {width: widthValue, height: heightValue}.
undefined to leave the width unchanged.
height : Mixed
The new height to set (not required if a size object is passed as the first arg). This may be one of:
A Number specifying the new height in the Element's Ext.Element.defaultUnits (by default, pixels).
A String used to set the CSS height style. Animation may not be used.
undefined to leave the height unchanged.
Returns:
Ext.BoxComponent
this
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式