Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/39.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
Html 自定义字体未显示在我的web预览中_Html_Css_Twitter Bootstrap_Custom Font - Fatal编程技术网

Html 自定义字体未显示在我的web预览中

Html 自定义字体未显示在我的web预览中,html,css,twitter-bootstrap,custom-font,Html,Css,Twitter Bootstrap,Custom Font,问题: -从font squirrel下载的webfontkit -将字体添加到具有字体系列、src、字体重量和字体样式的新css文件中 -试图将其应用于我的标题 -检查我的web浏览器,字体更改为默认字体,但不是我想要的自定义字体 我尝试过的事情 -重新检查了我的代码几次 -再次下载了webfontkit以及其他格式的.ttf和.svg index.html文件 styles.css文件 单击链接查看我的代码输出:检查@import path是否正确 @导入“fonts.css” 你检查过@f

问题:
-从font squirrel下载的webfontkit
-将字体添加到具有字体系列、src、字体重量和字体样式的新css文件中
-试图将其应用于我的标题
-检查我的web浏览器,字体更改为默认字体,但不是我想要的自定义字体

我尝试过的事情
-重新检查了我的代码几次
-再次下载了webfontkit以及其他格式的.ttf和.svg index.html文件

styles.css文件


单击链接查看我的代码输出:

检查@import path是否正确


@导入“fonts.css”

你检查过@font-face路径了吗?这个字体文件夹正确吗?
<!DOCTYPE html>
<html lang="en">
<head>
    <!-- Required meta tags always come first-->
    <meta charset="utf-8" />
    <meta name= "viewport" content="width=device-width, initial-scale=1" />

    <!-- build:css css/main.css -->
    <link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css" />
    <link rel="stylesheet" href="node_modules/font-awesome/css/font-awesome.min.css" />
    <link rel="stylesheet" href="node_modules/bootstrap-social/bootstrap-social.css" />
    <link rel="stylesheet" href="css/styles.css" />
    <!-- endbuild -->

    <title>DEVEDAN: A Digital Marketing Agency</title>
</head>

<body>
<!--I hid the Navbar code because it was irrelevant-->

<!--WEBSITE CONTENT-->      
    <!-- Page content holder -->
<div class="page-content p-5" id="content">

    <!-- Heading -->
    <h2 class="display-4 text-white">DEVEDAN</h2>
    <p class="lead text-white mb-0">Develop your business w/ Edson & Angelika</p>
    <div class="separator"></div> 

</div>
    <!--I hid the jscode because it was irrelevant-->
</body>
</html>
@font-face {
    font-family: 'siffonOutline';
    src: url('fonts/siffonoutline-webfont.eot');
    src: url('fonts/siffonoutline-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/siffonoutline-webfont.woff2') format('woff2'),
         url('fonts/siffonoutline-webfont.woff') format('woff'),
         url('fonts/siffonoutline-webfont.ttf') format('truetype'),
         url('fonts/siffonoutline-webfont.svg#sifonnbasic_outline') format('svg');
    font-weight: normal;
    font-style: normal;
}
/*Fonts*/
@import "fonts.css";

/*NAVBAR*/
.vertical-nav {
    min-width: 17rem;
    width: 17rem;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s;
}

.page-content {
    width: calc(100% - 17rem);
    margin-left: 17rem;
    transition: all 0.4s;
}

/*WEBSITE CONTENT*/
h2 {
    font-family: 'siffonOutline';
}

body {
    background: #599fd9;
    background: -webkit-linear-gradient(to right, #599fd9, #c2e59c);
    background: linear-gradient(to right, #599fd9, #c2e59c);
    min-height: 100vh;
    overflow-x: hidden;
}

.separator {
    margin: 3rem 0;
    border-bottom: 1px dashed #fff;
}