|
本帖最后由 look 于 2012-7-25 10:42 编辑
初学HTMLayout,Y有个布局问题一直不知道怎么解决?
import win.ui;
/*DSG{{*/
var winform = ..win.form( bottom=399;parent=...;text="aardio Form";right=599 )
winform.add( )
/*}}*/
import web.layout;
wbLayout = web.layout(winform)
wbLayout.html = /**
<body>
<div>1....................<div>我怎么在第二行</div> </div>
<div>2....................</div>
<div>3</div>
<div>4</div>
<div>5</div>
<div>6....................</div>
<div>7</div>
<div>8</div>
<div>9</div>
<div>10</div>
<div>11</div>
<div>12</div>
</body>
**/
wbLayout.css = /**
div { width:*; } //指定宽度才行
body {
flow: "1 1 1 5 11 12 3 4" //这个怎么不分开?
"2 2 6 6" //第二个子节点占用两列, 第六个节点占用两列
"7 8 9 10" ;//少个必须的分号
border-spacing-x: 10px;
}
**/
winform.show()
win.loopMessage();
|
|