【发布时间】:2016-06-26 07:13:06
【问题描述】:
我正在开发 Appcelerator 工作室。我想在标签文本中添加 html 标签。如何在标签中添加它。
var labThesisDetail = Titanium.UI.WebView({
text : "<p><strong>Master Of Science in Land Resource Management</strong></p> <p> </p>",
width : Ti.UI.FILL,
height : Ti.UI.SIZE,
right : 20,
top : 20,
editable : false,
backgroundColor : 'white',
left : 20,
color : "black",
font : {
fontSize : 13,
//fontFamily : "Signika-Regular",
fontWeight : 'normal'
}
});
viewCourseSummary.add(labThesisDetail);
【问题讨论】: