代码之家  ›  专栏  ›  技术社区  ›  Panadol Chong

由于beanclass标记,链接按钮打印错误

  •  0
  • Panadol Chong  · 技术社区  · 10 年前

    很好的一天,

    以下是我的jsp代码:

    <sx:row key="com.ui.batchRefNo">
        <s:link beanclass="com.ui.Batches" event="detail" addSourcePage="true">
            ${paymentHistory.batchRefNo }
        </s:link>
    </sx:row>
    
    <sx:input name="print" image="buttons.print" cssClass="btn-primary" onclick="framePrint('mainFrame');return false" simple="true"/>
    

    以下是我单击打印按钮后的输出:

    enter image description here

    假设它只显示 File Batch Ref No 20140814AP007 ,括号内的其余单词是因为 beanClass .

    我已经尝试与 style="display:none;" 并将链接放在这个分区内,但输出仍然相同。

    请告知。

    1 回复  |  直到 10 年前
        1
  •  0
  •   Panadol Chong    10 年前

    我发现解决方案如下:

    @media print {
        .noprint {display:none !important;}
        a:link:after, a:visited:after {  
          display: none;
          content: "";    
        }
    }