简体   繁体   English

如何在 Oracle Apex 5 中改变交互式报表列的宽度

[英]How to Vary the width of Interactive Report Column in Oracle Apex 5

I have one simple Interactive report build in Apex 5.0 .我在Apex 5.0构建了一个简单的交互式报告。 Its just simple plain statement pulling the data from table.它只是从表中提取数据的简单语句。

I need to adjust the size of each column in the so that data properly appears in the report.我需要调整 中每列的大小,以便数据正确显示在报告中。

Right now what is happening is that i have column called customer which contains customer name.现在发生的事情是我有一个名为 customer 的列,其中包含客户名称。 Now name is 30 to 40 characters long and in the report it is getting broken down in two lines.现在 name 的长度为3040字符,并且在报告中它被分成两行。

I tried using the following but there is no effect of this.我尝试使用以下方法,但没有效果。 Could you please help me to fix this.你能帮我解决这个问题吗? I have 30 columns in the report.我在报告中有30列。

#apexir_NAME{width: 200px;}

您应该尝试使用列格式并像这样设置HTML 表达式

<div style="display:block; width:200px">#COLUMN_NAME_OF_REPORT#</div>

To change interactive column width:要更改交互式列宽:

  1. Add static id to interactive report eg.将静态 ID 添加到交互式报告中,例如。 myReport我的报告
  2. Add static id for column in report eg.为报告中的列添加静态 ID,例如。 myColumn1我的专栏1
  3. Add to inline css of page below code:添加到以下代码页面的内联 css:

myReport td[headers=myColumn1]{ width:100px; myReport td[headers=myColumn1]{ width:100px; } }

Note: before myReport td put #注意:在 myReport td put 之前#

Use min-width instead.改用min-width You could use either of the following:您可以使用以下任一方法:

#apexir_NAME {min-width:200px;}

or或者

th#NAME {min-width:200px;}

To set all of them at once, you could try something like this:要一次设置所有这些,您可以尝试以下操作:

table.apexir_WORKSHEET_DATA th {min-width:200px;}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM