[英]remove link color and underline in pdf
I have a table named sample.我有一个名为 sample 的表。 The table contains data within the
a href
tag.该表包含
a href
标记内的数据。
I want to convert the table to pdf format.我想将表格转换为 pdf 格式。 My code is:
我的代码是:
var toPDF = function(htmlId, config ){
if( $('#'+htmlId).length > 0)
{
reportParameters['reportString'] = $('#'+htmlId).html();
reportParameters['config'] = JSON.stringify(config);
window.open('url','Page');
}
else
{
alert('Invalid HTML ID');
}
};
function myFunc()
{
var conf = {
'headerCenter':'sample',
'pageSize':'A4',
'headerFontSize':18,
'headerLine':true,
'headerSpacing':2,
'footerLine':false,
'footerCenter':'Date: [date] [time]',
'footerRight':'Page[page]',
'footerFontSize':8,
'footerSpacing':1
}
toPDF('sample',conf);
}
The above code works fine.上面的代码工作正常。 But my problem is, the pdf data contains the link data as blue color and underlined.
但我的问题是,pdf 数据包含链接数据为蓝色和下划线。
How can I remove link color and underline??如何删除链接颜色和下划线?
check this both css code !!检查这两个css代码!
a {color:black;text-decoration:none;}
a:hover{text-decoration:none;color:red;}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.