Sencha touch 如何使用sencha touch2在单个标签中显示四个标签内容
我正在使用sencha touch2。我想在一个标签中显示四个标签内容,如下代码所示。根据要求,我只有一个标签,对于这个标签,我需要添加四个标签内容。所以在本内容中,我使用标签分割每个标签。生成apk/ipa文件后。在ipad上,它的未来很好,它正在按照我们的要求显示一个又一个标签。但在安卓手机中,它并没有拆分内容,而是连续不断地发送文本,而不会中断线路。有人能告诉我如何解决这个问题吗。多谢各位Sencha touch 如何使用sencha touch2在单个标签中显示四个标签内容,sencha-touch,sencha-touch-2,Sencha Touch,Sencha Touch 2,我正在使用sencha touch2。我想在一个标签中显示四个标签内容,如下代码所示。根据要求,我只有一个标签,对于这个标签,我需要添加四个标签内容。所以在本内容中,我使用标签分割每个标签。生成apk/ipa文件后。在ipad上,它的未来很好,它正在按照我们的要求显示一个又一个标签。但在安卓手机中,它并没有拆分内容,而是连续不断地发送文本,而不会中断线路。有人能告诉我如何解决这个问题吗。多谢各位 Ext.define("MyPath", { extend: 'Ext.Panel',
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>'
}
]
}
Ext.define(“MyPath”{
扩展:“Ext.Panel”,
xtype:'SpecificationView',
需要:['Ext.Label'],
配置:{
标题:“规范”,
iconCls:'明星',
可滚动:对,
xtype:“数据视图”,
布局:{
对齐:'居中',
包装:'中心'
},
项目:[
{
保证金:“10”,
xtype:'标签',
html:“普通区域的地板采用花岗岩/玻化砖组合而成。门厅、起居室、餐厅和厨房采用玻化砖。卧室、阳台和公用设施采用瓷砖。门窗采用柚木框架,带抛光设计师百叶窗。带蚊帐和安全格栅。”
}
]
}
})) 嘿@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>'
html:“地板
”+
“公共区域的花岗岩/玻化砖组合。门厅、客厅、餐厅和厨房的玻璃砖。卧室、阳台和公用设施的瓷砖。
'+
“门窗
”+
公寓正门采用柚木框架,配有抛光的设计师百叶窗。带防蚊网和安全格栅'
希望能对您有所帮助。您能发布ipad输出的屏幕截图吗?