显示 table 边界 oracle 顶点 html 区域
show table border oracle apex html region
以下代码未在顶点报告中显示 table 边框。
Declare
Cursor c_Group Is
select DISTINCT
PSGROUP
FROM LOG_PS_STATUS;
Cursor c_Col(p_Group Varchar2) Is
select DISTINCT
SRNO,PSCOLUMN as PSCOLUMN
FROM LOG_PS_STATUS
WHERE PSGROUP =p_Group
ORDER BY SRNO;
Begin
For Rec_d In c_Group Loop
Htp.p('<table border: 1px solid>');
Htp.p('<tr><td colspan=75%><b>' || Rec_d.PSGROUP|| '</b></td></tr>');
Htp.p('<tr>');
For Rec_e In c_Col(Rec_d.PSGROUP) Loop
Htp.p('<td>' || Rec_e.PSCOLUMN|| '</td>');
End Loop;
For Rec_e In c_Col(Rec_d.PSGROUP) Loop
Htp.p('<tr><td>' || Rec_e.srno|| '</td></tr>');
End Loop;
Htp.p('</tr>');
Htp.p('</table>');
End Loop;
End;
您的 table 没有显示边框,因为您的 HTML 无效。如果你想要内联 CSS 你必须使用 style
属性,它包含内联 CSS 声明。
style="css-property:css-value;…"
Description
In Cascading Style Sheets (CSS), a key feature is the cascade itself.
In the cascade, styles set at different levels take different levels
of importance, so a style that’s set in a globally linked style sheet
can be overridden by a style for the same class or id that’s included
in an embedded style sheet. The style attribute goes a level further,
to override styles set in linked or embedded style sheets.
However, the use of the style attribute is generally considered to be
a bad practice, as it causes the presentation to become intrinsically
mixed with the content of the document—a practice that’s almost as bad
as using the font element to style text. One way in which you might
use inline styles is to debug CSS display issues (applying the style
at its lowest level in the cascade, and progressively moving higher up
the cascade until the problem is isolated). You should, therefore,
avoid using inline style attributes in your markup.
(来源:http://reference.sitepoint.com/html/core-attributes/style)
但是:
- 为什么不只制作一个在第一列(组)中断的经典报告?
- 为什么不使用带控制中断的 IR?
尝试充分利用 apex 而不是 htp.p 调用 - 这是在避免它的优势:声明性。先考虑顶点的可能性和边界。
以下代码未在顶点报告中显示 table 边框。
Declare
Cursor c_Group Is
select DISTINCT
PSGROUP
FROM LOG_PS_STATUS;
Cursor c_Col(p_Group Varchar2) Is
select DISTINCT
SRNO,PSCOLUMN as PSCOLUMN
FROM LOG_PS_STATUS
WHERE PSGROUP =p_Group
ORDER BY SRNO;
Begin
For Rec_d In c_Group Loop
Htp.p('<table border: 1px solid>');
Htp.p('<tr><td colspan=75%><b>' || Rec_d.PSGROUP|| '</b></td></tr>');
Htp.p('<tr>');
For Rec_e In c_Col(Rec_d.PSGROUP) Loop
Htp.p('<td>' || Rec_e.PSCOLUMN|| '</td>');
End Loop;
For Rec_e In c_Col(Rec_d.PSGROUP) Loop
Htp.p('<tr><td>' || Rec_e.srno|| '</td></tr>');
End Loop;
Htp.p('</tr>');
Htp.p('</table>');
End Loop;
End;
您的 table 没有显示边框,因为您的 HTML 无效。如果你想要内联 CSS 你必须使用 style
属性,它包含内联 CSS 声明。
style="css-property:css-value;…"
Description
In Cascading Style Sheets (CSS), a key feature is the cascade itself. In the cascade, styles set at different levels take different levels of importance, so a style that’s set in a globally linked style sheet can be overridden by a style for the same class or id that’s included in an embedded style sheet. The style attribute goes a level further, to override styles set in linked or embedded style sheets.
However, the use of the style attribute is generally considered to be a bad practice, as it causes the presentation to become intrinsically mixed with the content of the document—a practice that’s almost as bad as using the font element to style text. One way in which you might use inline styles is to debug CSS display issues (applying the style at its lowest level in the cascade, and progressively moving higher up the cascade until the problem is isolated). You should, therefore, avoid using inline style attributes in your markup.
(来源:http://reference.sitepoint.com/html/core-attributes/style)
但是:
- 为什么不只制作一个在第一列(组)中断的经典报告?
- 为什么不使用带控制中断的 IR?
尝试充分利用 apex 而不是 htp.p 调用 - 这是在避免它的优势:声明性。先考虑顶点的可能性和边界。