XUL 网格布局问题
我现在正在创建一个 XUL 应用程序,但此时遇到了一些问题。我当前的文件位于: http://projects.thecloudonline.net/gemxul/regrid.xul< /a>.
我希望第二列本质上是“浮动:右”(就像 CSS 在网页上的工作方式一样)。红色背景显示该部分已移动,但我的内容卡在左侧。怎样才能让内容与之配合呢?
其次,我的总体目标是让布局基本上分成两半。在第一列上设置 maxwidth="50%" 似乎没有任何作用。这是正确的方法,还是我离那里还很远?
现在就这些了!
I'm working on creating an XUL app right now and I'm stuck with a few problems at this point. My current file is here: http://projects.thecloudonline.net/gemxul/regrid.xul.
I want that second column to essentially "float: right" (like how CSS works on webpages). The red background shows me that part moved, but my content is stuck oriented left. How can I make the content go along with it?
Secondly, my overall goal is to get it so that the layout is essentially split in half. Setting maxwidth="50%" on the first column doesn't seem to do anything. Is that the correct approach, or am I way off there?
That's all for now!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这应该可行:
有几种方法可以做到这一点。就我个人而言,我不会使用网格来做这样的事情。 vbox 和 hbox 的组合胜过您通常在表格中所做的任何事情。但当然,这完全取决于您的最终目标是什么。
This should work :
There are several ways of doing this. Personally I wouldn't use grid for something like this. vbox and hbox in combination beats anything you would normally do in tables. But of course it depends entirely what your end goal is.