ITeye博客

EXT 在FormPanel中显示图片的例子

caoxiping · 2010-11-18 21:43 · ExtJS · Web前端 · Markdown

  1. {
  2. columnWidth: .5,
  3. layout: 'form',
  4. items: [
  5. {
  6. xtype : 'box',
  7. anchor : '',
  8. anchor: '95%',
  9. //width:100,
  10. //height:100,
  11. autoEl : {
  12. tag : 'div',
  13. style : 'margin:8px 0 8px 105px',
  14. children : [
  15. {
  16. tag : 'img',
  17. qtip : 'You can also have a tooltip on the image',
  18. width:100,
  19. height:100,
  20. src : '/edu'+this.image
  21. }]
  22. }
  23. }]
  24. }

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。