我的自定义字体不会显示在android智能手机浏览器上吗?

问题描述

希望你一切都好。 我需要您的帮助以找到解决方案;当我在智能手机android浏览器上查看我的网站时,我的自定义字体没有保留!知道为什么字体样式在我的智能手机上不起作用吗?我在Android Chrome浏览器中使用galaxy 9 Note。我将vag字体放在一个名为“ fonts”的外部文件夹中,并创建了指向它的链接,该链接在我的Windows浏览器中有效(请参见以下代码

因此可以添加一些CSS代码,以便在任何智能手机上查看时都可以吗?我的站点将与Windows浏览器相同。

希望这可能吗?任何建议或示例在这里将不胜感激。 Thx Stewy 附言:我还注意到我的字体在下面的代码浏览器中不起作用吗?

enter image description here

<!doctype html>
<html>
<head>
<Meta name="viewport" content="initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,width=device-width,height=device-height,target-densitydpi=device-dpi,user-scalable=yes" />
<title>Home</title>
<link rel="icon" type="image/png" href="pix/icon.png" />
<style type="text/css" href="/fonts">
    html {scroll-behavior: smooth;}
    @font-face {
    font-family: vag;
    src: url(fonts/VAGRoundedStd-Light.otf);
}   
    body {
    background-color: grey;
    background: url(http://wizzfree.com/pix/bg.png) fixed;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    overflow: hidden;
    margin: 0px;
    
    font-family: Arial;
    color: darkgrey;
    font-size: 12px;
    line-height: .3;
    letter-spacing: .5px;
}
    .logo {
    position: absolute;
    top: 20px;
    left: 3%;
}
    .cam {
    position: absolute;
    top: 20px;
    right: 3%;
    border-radius: 60px;
}
    .livestream {
    object-fit:cover;
    height: 100vh;
    max-width: 100%;
    display: block;
    margin: auto;
}
    /*............... chatBox ...............*/
    
    .chatBox {
    position:fixed;
    bottom: 80px;
    left: 50%; 
    transform:translateX(-50%); /* center */
    width:50vw;
    height:42px;
    background-color: #2f2f2f;
    border-radius: 0px 30px 30px 0px;
    z-index: 3;
}
    /*... input message ...*/
    
    input[type=text] {
    width: 100%;
    height: 40px;
    border: none;
    outline: none;
    padding-left: 37px;
    font-family: vag;
    color: white;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1.5px;
    background-color:transparent;
}
    /*............. footer bar.............*/
    
    .footerbar {
    position: fixed;
    border-radius: 50px 50px 0 0;
    bottom: 0px;
    width: 100%;
    height: 100px;
    background-color: rgba(0,0.4);
    backdrop-filter: blur(20px);
    -ms-backdrop-filter: blur(20px);
    -moz-backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2;
}
    /*........ crossfade on buttons ........*/

    #hover img{
    transition:.3s;
    position:absolute;
}
    .nohover{
    opacity:0;}
    a:hover .hover{
    opacity:0;
}
    a:hover .nohover{
    opacity:1;
}
    .hover {
    position: relative;
}
    .hover img{
    position: absolute;
}
<img class="logo" src="http://wizzfree.com/pix/logo.png" width="100">
<img class="cam" src="http://wizzfree.com/pix/cam.jpg" width="117">
<img class="livestream" src="http://wizzfree.com/pix/vid00x.jpg">



<!--................ chatBox ..................-->

<div class="chatBox" style="min-width:370px;max-width:600px;display:flex;margin-left:15px;">
<!-- emojis gallery -->
<a class="hover" href="emojis.htm">
<img src="http://wizzfree.com/pix/smiley.png" height="42" style="margin-left:-32px;">
<img src="http://wizzfree.com/pix/smiley2.png" height="42" class="nohover" style="margin-left:-32px;">
<img src="http://wizzfree.com/pix/smiley.png" height="42" class="hover" style="margin-left:-32px;">
</a>
<!-- input message -->
<input type="text" id="fname" name="fname" value="Type Your Message" onFocus="this.value=''">
<!-- typing on/off -->
<p style="margin-top:18px;margin-right:15px;color:#00fff6;font-family:vag;font-size:16px;letter-spacing:1.5px;"><em><strong>Typing...</strong></em></p>
</div>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)