Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to make IIS6 support svg image display

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article focuses on "how to make IIS6 support svg image display", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to make IIS6 support svg image display.

One of the code tested today, everything is fine locally, but after uploading it to the server, I found that some icons are not displayed. The picture exists, but can not be accessed, so Baidu. If you want to open the .svg picture on iis, you still need to do some mapping.

1. Open IIS- to find the right-click attribute of your website-HTTP header-Click MIME type.

2. Click New, and enter as follows

Extension: .svg

MIME type: image/svg+xml

After all has been added, click OK to save and exit to refresh the page to see if the display is normal, and if not, check if you are missing punctuation.

Similarly, IIS6 can also support WOFF/WOFF2. The correct MIME information should be written as follows:

Extension: .woff

MIME type: application/x-font-woff

Extension: .woff2

MIME type: application/x-font-woff

Restart the site after adding and you can see the effect. For the deployment method under IIS7, please refer to the IIS7 environment to achieve normal display of svg/woff/woff2 fonts.

At this point, I believe you have a deeper understanding of "how to make IIS6 support svg image display". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report