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")%>"
}
}
这个我怎么规定图片的大小啊。求高手指点 展开
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")%>"
}
}
这个我怎么规定图片的大小啊。求高手指点 展开
1个回答
展开全部
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
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
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询