Extjs图片显示的问题
http://zhidao.baidu.com/question/2075093193814376628.html...
http://zhidao.baidu.com/question/2075093193814376628.html
展开
2个回答
2014-11-19 · 知道合伙人互联网行家
关注
展开全部
你路径写错了
你用的框架应该是play或者maven吧
对于框架来说,你的根目录其实原本就是src/main/webapp
你alert出来的地址代表系统找图片时的地址是src/main/webapp/src/main/webapp,下面肯定没有个这个目录
你控制台访问也是提示找不到图片,你可以复制那个找不到的地址,然后把其中的src/main/webapp这个路径删除,在浏览器里看能不能找到图片
我觉得你应该是理解错了项目的根目录,其实你localhost:8080/sale-web/就已经是在你项目的src/main/webapp这个目录下了,你可以试试
希望能帮助到你
你用的框架应该是play或者maven吧
对于框架来说,你的根目录其实原本就是src/main/webapp
你alert出来的地址代表系统找图片时的地址是src/main/webapp/src/main/webapp,下面肯定没有个这个目录
你控制台访问也是提示找不到图片,你可以复制那个找不到的地址,然后把其中的src/main/webapp这个路径删除,在浏览器里看能不能找到图片
我觉得你应该是理解错了项目的根目录,其实你localhost:8080/sale-web/就已经是在你项目的src/main/webapp这个目录下了,你可以试试
希望能帮助到你
展开全部
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
是否可以解决您的问题?
追问
亲,你在说什么呀。。。。我问的是Extjs图片显示的问题,你这个好像不是这个问题的答案吧。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询