Countries Flag
全球各国国旗,支持国家电话区号和ISO 3166-1
https://freeshineit.github.io/countries-flag
https://freeshineit.github.io/countries-flag/index-code.html
https://freeshineit.github.io/countries-flag/index-64.html
https://freeshineit.github.io/countries-flag/index-code-64.html
demo
Install
With NPM
npm install countries-flag
With Yarn
yarn install countries-flag
Use
CSS
@import 'countries-flag';
.flag {
background-image: url(~countries-flag/lib/flags.png);
}
Sass
@import 'countries-flag/index.scss';
.flag {
background-image: url(~countries-flag/lib/flags.png);
}
HTML
<span class='flag flag-cn'></span>
<span class='flag flag-86'></span>