BootStrap icon icon Icons glyphicons A quick solution to an abnormal display _javascript tips

Source: Internet
Author: User

Bootstrap icon icon Glyphicons Abnormal display solution is as follows:

Share for your reference:

1, in the ff/http: the Address bar input "About:config", that is, into the configuration interface.

2, after entering, search "Security.fileuri.strict_origin_policy", this is the value should be true.

3, double-click the item, its value automatically becomes false, you can.

4, after the modification, and then refresh the problem of the page, you can see the normal display of the icon.

Explore the cause of the problem:

1, because of ff/http: a security policy caused. This policy restricts the access of HTML files to Web fonts in folders that are not in the root directory.

2, this restriction is only in the local development environment, while the Web fonts is not available from remote acquisition.

3, then looked at the next mentioned the bootstrap project without problems.

4, sure enough, its Fonts folder is placed in the root directory of the project.

5, so even if not to change the above security policy, it can be normal display.

6, @font-face address:

@font-face {
font-family: ' glyphicons halflings ';
Src:url ('.. /fonts/glyphicons-halflings-regular.eot ');
Src:url ('.. /fonts/glyphicons-halflings-regular.eot #iefix ') format (' Embedded-opentype '), url ('.. /fonts/glyphicons-halflings-regular.woff ') format (' Woff '), url ('.. /fonts/glyphicons-halflings-regular.ttf ') format (' TrueType '), url ('.. /fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular ') format (' SVG ');
}

The above is a small set to introduce the bootstrap icon icons icon glyphicons Abnormal display of the fast solution, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.