列的红色视频布局
Red vid layout for columns
如何很好地对齐列:
适合 :
view layout [
title "How to align ?"
panel [
text "" text "col1" text "col2"
]
return
panel [
text "very short" field "" field ""
]
return
panel [
text "short" field "" field ""
]
]
事情出错了:
view layout [
title "How to align ?"
panel [
text "" text "col1" text "col2"
]
return
panel [
text "very short" field "" field ""
]
return
panel [
text "short" field "" field ""
]
return
panel [
text "but if very very long" field "" field ""
]
]
后续问题:如何在行之间缩小space?
您需要将面板设置为列而不是行,然后为它们指定满足您需要的特定宽度。
view layout [
title "How to align ?"
panel 120x300 [
text "" return
text "very short" return
text "short" return
text "but if very very long" return
]
panel 120x300 [
text "col1" return
field return
field return
field return
]
panel 120x300 [
text "col2" return
field return
field return
field return
]
]
如何很好地对齐列:
适合 :
view layout [
title "How to align ?"
panel [
text "" text "col1" text "col2"
]
return
panel [
text "very short" field "" field ""
]
return
panel [
text "short" field "" field ""
]
]
事情出错了:
view layout [
title "How to align ?"
panel [
text "" text "col1" text "col2"
]
return
panel [
text "very short" field "" field ""
]
return
panel [
text "short" field "" field ""
]
return
panel [
text "but if very very long" field "" field ""
]
]
后续问题:如何在行之间缩小space?
您需要将面板设置为列而不是行,然后为它们指定满足您需要的特定宽度。
view layout [
title "How to align ?"
panel 120x300 [
text "" return
text "very short" return
text "short" return
text "but if very very long" return
]
panel 120x300 [
text "col1" return
field return
field return
field return
]
panel 120x300 [
text "col2" return
field return
field return
field return
]
]