Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法访问FTL中的.css文件以生成PDF_Css - Fatal编程技术网

无法访问FTL中的.css文件以生成PDF

无法访问FTL中的.css文件以生成PDF,css,Css,我想访问FTL中的.css文件以生成PDF,但我无法在PDF中看到效果 我试了两种方法 <link rel="stylesheet" href="../font/fonts.css"/> <link rel="stylesheet" href="../stylesheets/global.css"/> <link rel="stylesheet" href="../font/fonts.css"/> <link rel="stylesheet" hre

我想访问FTL中的.css文件以生成PDF,但我无法在PDF中看到效果

我试了两种方法

<link rel="stylesheet" href="../font/fonts.css"/>
<link rel="stylesheet" href="../stylesheets/global.css"/>
<link rel="stylesheet" href="../font/fonts.css"/>
<link rel="stylesheet" href="../stylesheets/global.css"/>
代码如下

<!DOCTYPE html>

<head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="key, words"/>    
    <meta name="description" content="Website description"/>
    <meta name="robots" content="noindex, nofollow"/>
    <meta name="format-detection" content="telephone=no" />
    <meta name="viewport" content="width=device-width, initial-scale=1, 
     maximum-scale=1"/>

    <link rel="stylesheet" href="../font/fonts.css"/>
    <link rel="stylesheet" href="../stylesheets/global.css"/>
</head>
<body>
<section id="wrapper">
    <section id="mainCntr">
        <article class="objectBox">
            <div class="logo">
                <img src=""/>
            </div>
                <div class="text">
                <h2>Objects in <br/> this document <br/> are simpler <br/> than they seem.</h2>
            </div>
        </article>

    </section>
 </section>
 </body>

</html>


此文档中的对象
比看起来更简单。

有谁能告诉我在FTL中获得effect font.css和global.css以生成PDF的正确方法吗?

最后,我们根据我们的要求在每一行上对整个PDF文件代码应用内联css

从pdf文件代码中删除以下至行


<!DOCTYPE html>

<head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="key, words"/>    
    <meta name="description" content="Website description"/>
    <meta name="robots" content="noindex, nofollow"/>
    <meta name="format-detection" content="telephone=no" />
    <meta name="viewport" content="width=device-width, initial-scale=1, 
     maximum-scale=1"/>

    <link rel="stylesheet" href="../font/fonts.css"/>
    <link rel="stylesheet" href="../stylesheets/global.css"/>
</head>
<body>
<section id="wrapper">
    <section id="mainCntr">
        <article class="objectBox">
            <div class="logo">
                <img src=""/>
            </div>
                <div class="text">
                <h2>Objects in <br/> this document <br/> are simpler <br/> than they seem.</h2>
            </div>
        </article>

    </section>
 </section>
 </body>

</html>
<link rel="stylesheet" href="../font/fonts.css"/>
<link rel="stylesheet" href="../stylesheets/global.css"/>