Oracle APEX-在动态pl / sql区域内使超链接变为粗体

时间:2019-04-25 13:53:30

标签: oracle oracle-apex oracle-apex-5.1

我有一个动态PL / SQL区域,其中显示了几个超链接。有没有一种方法可以使其中之一根据当前页码以粗体显示?我该怎么办?

1 个答案:

答案 0 :(得分:1)

这是一个简单的例子;如果页码是(例如)44,您将应用<b> HTML标记使超链接加粗

begin
  htp.prn('<html>');
    htp.prn('<head>');
      htp.prn('<body>');
        htp.prn('<p>');
          htp.prn('<a href="http://www.google.com">Google</a>');
        htp.prn('</p>');

        htp.prn('<p>');
          htp.prn(case when :APP_PAGE_ID = 44 then '<b>' end);   --> this ...
          htp.prn('<a href="http://www.bing.com">Bing</a>');
          htp.prn(case when :APP_PAGE_ID = 44 then '</b>' end);  --> ... and this
        htp.prn('</p>');
      htp.prn('</body>');
    htp.prn('</head>');
  htp.prn('</html>');
end;