作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有那个代码。 ( https://openui5.hana.ondemand.com/#test-resources/sap/ui/layout/demokit/Grid.html )
var oGrid1 = new sap.ui.layout.Grid({
hSpacing: 1,
vSpacing: 1,
content: [
new sap.ui.commons.TextView({
text : 'Text spanned over 4 cols on large, 6 cols on medium, and 12 cols on small screens.',
layoutData : new sap.ui.layout.GridData({
span : "L4 M6 S12"
})
}),
new sap.ui.commons.TextView({
text : 'Text spanned over 4 cols on large, 6 cols on medium, and 12 cols on small screens.',
layoutData : new sap.ui.layout.GridData({
span : "L4 M6 S12"
})
}),
new sap.ui.commons.TextView({
text : 'Text spanned over 4 cols on large, 6 cols on medium, and 12 cols on small screens.',
layoutData : new sap.ui.layout.GridData({
span : "L4 M6 S12"
})
})
]
});
oGrid1.placeAt("sample1");
layoutData : new sap.ui.layout.GridData({span : "L4 M6 S12"})
最佳答案
SAPUI5 Diagnostics CTRL+ALT+SHIFT+S ->XML View 转换 - 一种允许您将现有 View 转换为 XML 或 HTML View 标记的实用程序
<sap.ui.commons:TextView text="Text spanned over 4 cols on large, 6 cols on medium, and 12 cols on small screens.">
<sap.ui.commons:layoutData>
<sap.ui.layout:GridData span="L4 M6 S12" spanL="0" spanM="0" spanS="0" indentL="0" indentM="0" indentS="0" spanLarge="0" spanMedium="0" spanSmall="0" indentLarge="0" indentMedium="0" indentSmall="0"></sap.ui.layout:GridData>
</sap.ui.commons:layoutData>
</sap.ui.commons:TextView>
关于sapui5 - 如何在 XML View SAPUI5 中使用 layout.Grid?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23807569/
我是一名优秀的程序员,十分优秀!