-1
我有一个名为示例表。该表格包含a href
标签内的数据。删除链接颜色和下划线pdf
我想将表格转换为pdf格式。我的代码是:
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);
}
上面的代码工作正常。但我的问题是,PDF数据包含链接数据为蓝色并加下划线。
如何删除链接颜色和下划线?
'a {text-decoration:none; color:#000;}' – madalinivascu
什么是'toPdf'?也许那里有文档 – mplungjan
使用madlin – Sato