为什么页脚中的链接不起作用?

时间:2018-09-10 10:22:41

标签: html web

var printer = new pdfMakePrinter(fontDescriptors);

var doc = printer.createPdfKitDocument(pdfDoc, { bufferPages: true }); // magic here!
doc.switchToPage(x); // to page x, where x start from 0

SVGtoPDF(doc, s.data, s.x, s.y, s.options); // add this line for SVG-to-PDFKit to insert SVG while s contain SVG data

var chunks = [];
var result;

doc.on('data', function(chunk) {
    chunks.push(chunk);
});
doc.on('end', function() {
    result = Buffer.concat(chunks);
    resolve(result);
});
doc.end();

这里,页脚面临一个很大的问题,即使一切似乎正确,链接也无法正常工作。谁能建议我做任何事情。一个非常简单的地方,给我带来很多麻烦。

2 个答案:

答案 0 :(得分:1)

缺少引号href =“”

<div class="col-lg-4 col-sm-12 footer-social">
                    <a href="https://www.facebook.com/ooty.heritage.92"><i class="fa fa-facebook"></i></a>
                    <a href="https://twitter.com/OotyAnd"><i class="fa fa-twitter"></i></a>
                    <a href="https://www.instagram.com/ooty_heritage/?hl=en"><i class="fa fa-instagram"></i></a>
                    <a href="https://plus.google.com/u/0/110334609097832679127"><i class="fab fa-google-plus-g"></i></a>
                    <a href="https://www.linkedin.com/in/ooty-heritage-tours-and-travels-81065a170/"><i class="fa fa-facebook"></i></a>
                </div>

答案 1 :(得分:0)

请像这样更正href

    <div class="col-lg-4 col-sm-12 footer-social">
        <a href="https://www.facebook.com/ooty.heritage.92"><i class="fa fa-facebook"></i></a>
        <a href="https://twitter.com/OotyAnd"><i class="fa fa-twitter"></i></a>
        <a href="https://www.instagram.com/ooty_heritage/?hl=en"><i class="fa fa-instagram"></i></a>
        <a href="https://plus.google.com/u/0/110334609097832679127"><i class="fab fa-google-plus-g"></i></a>
        <a href="https://www.linkedin.com/in/ooty-heritage-tours-and-travels-81065a170"><i class="fa fa-facebook"></i></a>
    </div>