Fonts display<网站字体不能正常显示>

本文介绍了解决网站中woff和svg字体无法加载的问题,通过在web.config文件中配置正确的MIME类型来确保字体资源能够被正确加载,进而使网站上的图标和其他字体元素能够正常显示。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

网站字体不能正常显示.  发现网站所用的woff、svg等字体压根就没被页面加载。反复排摸都不得其解,用浏览器访问服务器上的这些字体url,全都报404错误,只有ttf的字体能被访问到…  

在web.config文件里面做如下设置: 

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.webServer>
  <staticContent>
  <remove fileExtension=".woff"/>
  <remove fileExtension=".svg"/>
  <remove fileExtension=".woff2"/>
     <mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
     <mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
     <mimeMap fileExtension=".woff2" mimeType="application/x-font-woff" />
  </staticContent>
  </system.webServer>
</configuration>

下面是效果图, 之前那些图标都是框, 属于无法正常显示; 



请你帮我把这个运行成可下载的PDF:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Research Hypothesis: MgSO₄ in Chemotherapy-Induced Neuropathic Pain</title> <script src="https://cdn.jsdelivr.net/npm/mermaid@10.6.1/dist/mermaid.min.js"></script> <style> body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f8f9fa; margin: 0; padding: 20px; display: flex; flex-direction: column; align-items: center; } .container { max-width: 1200px; width: 100%; background-color: white; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); padding: 30px; margin-top: 20px; } header { text-align: center; margin-bottom: 30px; border-bottom: 2px solid #3498db; padding-bottom: 20px; } h1 { color: #2c3e50; margin-bottom: 10px; } .subtitle { color: #7f8c8d; font-size: 1.2em; margin-top: 0; } .diagram-container { width: 100%; min-height: 500px; background-color: #f5f7fa; border-radius: 8px; padding: 20px; margin: 20px 0; } .legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin: 20px 0; padding: 15px; background-color: #e8f4fc; border-radius: 8px; } .legend-item { display: flex; align-items: center; gap: 8px; font-size: 14px; } .color-box { width: 20px; height: 20px; border-radius: 4px; } .key-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 30px; } .card { background-color: #f8f9fa; border-left: 4px solid #3498db; padding: 15px; border-radius: 4px; } .card h3 { margin-top: 0; color: #2c3e50; } footer { text-align: center; margin-top: 30px; color: #7f8c8d; font-size: 0.9em; padding-top: 20px; border-top: 1px solid #ecf0f1; } @media print { body { padding: 0; margin: 0; } .container { box-shadow: none; padding: 10px; } .no-print { display: none; } } </style> </head> <body> <div class="container"> <header> <h1>Research Hypothesis: MgSO₄ in Chemotherapy-Induced Neuropathic Pain (CINP)</h1> <p class="subtitle">Mechanism of Action and Protective Effects</p> </header> <div class="diagram-container"> <div class="mermaid"> flowchart TD %% Chemotherapy Induction A[Oxaliplatin<br>Chemotherapy] --> B %% Core Mechanism Pathway subgraph B[Chemotherapy-Induced Neuropathic Pain] direction TB C[TNF-α Release] --> D[TNFR1 Activation] D --> E[Fyn Kinase Activation] E --> F[NR2B Phosphorylation<br>(pTyr1472)] F --> G[NMDA Receptor<br>Hyperactivation] G --> H[Ca²⁺ Influx] H --> I[Neuronal Apoptosis] H --> J[Autophagy Flux<br>Disruption] I --> K[Neuropathic Pain] J --> K end %% Magnesium Intervention L[MgSO₄ Intervention] -->|Inhibits NF-κB Pathway| C L -->|Blocks Ion Channel| G %% Pain Outcome K --> M((Persistent<br>Neuropathic Pain)) %% Style enhancements classDef chem fill:#f8d7da,stroke:#721c24,color:#721c24; classDef process fill:#cfe2ff,stroke:#052c65,color:#052c65; classDef effect fill:#fff3cd,stroke:#856404,color:#856404; classDef pain fill:#d1ecf1,stroke:#0c5460,color:#0c5460; classDef intervention fill:#d4edda,stroke:#155724,color:#155724; class A chem; class B process; class C,D,E,F,G process; class H,I,J effect; class K,M pain; class L intervention; </div> </div> <div class="legend"> <div class="legend-item"> <div class="color-box" style="background-color: #f8d7da;"></div> <span>Chemotherapy Induction</span> </div> <div class="legend-item"> <div class="color-box" style="background-color: #cfe2ff;"></div> <span>Core Molecular Processes</span> </div> <div class="legend-item"> <div class="color-box" style="background-color: #fff3cd;"></div> <span>Cellular Effects</span> </div> <div class="legend-item"> <div class="color-box" style="background-color: #d1ecf1;"></div> <span>Pain Outcome</span> </div> <div class="legend-item"> <div class="color-box" style="background-color: #d4edda;"></div> <span>MgSO₄ Intervention</span> </div> </div> <div class="key-points"> <div class="card"> <h3>Core Pathogenic Mechanism</h3> <p>The "TNF-α → pNR2B-NMDA → Cellular Damage" axis is central to chemotherapy-induced neuropathic pain development:</p> <ul> <li>TNF-α activates TNFR1 receptors</li> <li>Fyn kinase phosphorylates NR2B subunit (pTyr1472)</li> <li>NMDA receptor hyperfunction causes Ca²⁺ overload</li> <li>Leads to neuronal apoptosis & autophagy disruption</li> </ul> </div> <div class="card"> <h3>MgSO₄ Dual-Action Intervention</h3> <p>Magnesium sulfate provides dual protective effects:</p> <ul> <li><strong>Anti-inflammatory action:</strong> Inhibits TNF-α release via NF-κB pathway suppression</li> <li><strong>Receptor modulation:</strong> Blocks NMDA receptor ion channel as non-competitive antagonist</li> <li>Targets both arms of the pathogenic pathway</li> </ul> </div> <div class="card"> <h3>Research Implications</h3> <p>This study will validate:</p> <ul> <li>The causal relationship in the TNF-α/pNR2B pathway</li> <li>MgSO₄ efficacy in preventing CINP development</li> <li>Downstream cellular protection mechanisms</li> <li>Potential for clinical translation</li> </ul> </div> </div> </div> <footer class="no-print"> <p>This diagram illustrates the proposed mechanism of chemotherapy-induced neuropathic pain and the protective effects of magnesium sulfate</p> <p>To save as PDF: Use browser's Print function and select "Save as PDF"</p> </footer> <script> mermaid.initialize({ startOnLoad: true, theme: 'default', flowchart: { useMaxWidth: true, curve: 'linear', nodeSpacing: 50, rankSpacing: 70 }, securityLevel: 'loose' }); </script> </body> </html>
最新发布
07-22
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值