0

我正在使用煎茶 touch2。我想在一个标签中显示四个标签内容,如下代码所示。根据要求,我只有一个标签,为此标签我需要添加四个标签内容。所以在这个内容中我使用标签来分割每个标签。生成apk/ipa文件后。在 ipad 中它会很好,它会根据我们的要求一个接一个地显示标签。但在 android 手机中,它不会拆分内容,文本是连续的,不会断线。有人可以告诉我如何解决这个问题。谢谢

Ext.define("MyPath", {
    extend: 'Ext.Panel',
    xtype: 'SpecificationView',
    requires: ['Ext.Label'],
    config: {

        title: 'Specification',
        iconCls: 'star',
        scrollable: true,
        xtype: 'dataview',
        layout: {
            align: 'center',
            pack: 'center'
        },
        items: [                         
            {
                margin: '10',
                xtype: 'label',
                html: '<label><b>Flooring</b></label></br><label>Combination of Granite/Vitrified tiles in common areas. Vitrified tiles in foyer, living, dining and kitchen. Ceramic tiles in bedroom, balcony and utility.</label></br></br><label ><b>Doors & Windows</b></label></br><label>Apartment main door in teakwood frame with polished designer shutters. with mosquito mesh and safety grill</label>'
            }
            ]
    }

});

4

1 回答 1

1

嘿@user1177921 请试试这个,

html: '<label><b>Flooring</b></label><br />' + 
      '<label>Combination of Granite/Vitrified tiles in common areas. Vitrified tiles in foyer, living, dining and kitchen. Ceramic tiles in bedroom, balcony and utility.</label><br />' + 
      '<label ><b>Doors & Windows</b></label><br />' + 
      '<label>Apartment main door in teakwood frame with polished designer shutters. with mosquito mesh and safety grill</label>'

我希望能帮助你。

于 2012-06-09T06:05:55.197 回答