如何在 Oracle Apex 中整齐地对齐项目?
我在 Oracle Apex 中调整内容时遇到了最困难的时候...基本上有些页面看起来不错,但有些页面看起来像这样:
这是考虑到我的所有页面都具有相同的模板/区域/列设置:
我做错了什么?!
编辑:
我确实让定位变得更好一点:
这是模板信息:
I am having the hardest time aligning things in Oracle Apex...basically some pages look ok, but some look like this:
This is considering that all of my pages have the same template/region/col settings:
What am I doing wrong?!
EDIT:
I did get the positioning to become a little better:
Here's the template info:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它可能是您的页面模板。我已经导入了 Green Spring 主题并尝试了它。由于您使用的是选项卡并且仅使用 apex 模板,因此您可能选择了
一级选项卡 - 左侧边栏(固定宽度/基于 DIV)
。这可以解释为什么您的“添加新用户”区域被“推”到右侧。当您添加另一个区域时,它也可能会被推送。未设置的菜单区域可能会放置在模板中侧边栏之前的另一个位置。
因此,这里是
一级选项卡 - 左侧边栏(基于固定宽度/DIV)
模板的正文模板的代码:因此,您在编辑后所做的操作可能是添加“添加新用户” ' 区域到
页面模板区域位置 1
,就像菜单区域一样,将它们堆叠起来。默认位置位于
我想说您的实际问题仍然在于页面模板。您应该尝试以下操作:转到共享组件>模板,并复制
一级选项卡 - 左侧边栏(固定宽度/基于 DIV)
模板(通过单击旁边的 2 页图标完成)。然后编辑这个副本(只需将其称为一级模板测试),并像这样更改正文 div。然后更改页面模板,将 2 个区域设置为位置 #03,并将模板设置为
Reports Region
。您的区域将一直向左对齐,彼此下方,左侧没有空格。老实说,这是解决侧边栏空白的最简单方法。正文中没有其他区域省略了侧边栏。至少在这个主题中!
It might be your page template. I've imported the Green Spring theme and tried it out. Since you're using tabs and only using the apex templates, you might've chosen the
One level tabs - Left sidebar (fixed width / DIV based)
. That would explain why your 'Add New User' region is being 'pushed' to the right. When you add another region, it will probably too get pushed.Your menu region, which is not being set off, might be placed in another position in the template, before the sidebar.
So here is the code for the body template of the
One Level Tabs - Left Sidebar (fixed-width / DIV based)
template:So what you did after your edit, was probably putting the 'Add new user' region to
Page Template Region Position 1
, just like the Menu region, stacking them up.The default place would have been in
<div id="main-sb-left">
I'd say that your actual problem still lies with the page template. You should try this: go to shared components > templates, and make a copy of the
One Level Tabs - Left Sidebar (fixed-width / DIV based)
template (done by clicking the 2 page icon next to it). Then edit this copy (just call it one level template test), and change the body div like this.Then alter your page template, and set your 2 regions to position #03, and set the template to
Reports Region
. Your regions will be aligned all the way left, under eachother, and no whitespace to the left.Honestly, that'd be the easiest way to solve the empty sidebar space. There are no other regions in the body that omit the sidebar. At least in this theme!