ui-ie8
v1.1.1
Published
基于React兼容ie8的UI组件库
Downloads
4
Readme
基于React兼容ie8的UI组件库
npm i --- 安装模块
npm run dev --- 开发环境
npm run prod --- 生产环境
技术栈
react(最新版) [https://react.docschina.org/]
route(anujs) [https://reach.tech/router]
rematch(anujs) [https://github.com/rematch/rematch]
ui 组件参照 antd react [https://ant.design/components/overview-cn/]
项目说明
ie8 兼容 iconfont 方案
iconfont.ttf 文件转换成 iconfont.eot [https://ucece.com/ttf2eot]
如下修改 iconfont/iconfont.css 文件 @font-face { font-family: 'iconfont'; src: url('iconfont.eot?t=1651117937101'); src: url('iconfont.eot?t=1651117937101?#iefix') format('embedded-opentype'), url('iconfont.woff2?t=1651117937101') format('woff2'), url('iconfont.woff?t=1651117937101') format('woff'), url('iconfont.ttf?t=1651117937101') format('truetype'); }
@font-face { font-family: 'anticon'; src: url('https://at.alicdn.com/t/font_1463992151_360388.eot'); /* IE9*/ /* IE6-IE8 / src: url('https://at.alicdn.com/t/font_1463992151_360388.eot?#iefix') format('embedded-opentype'), url('https://at.alicdn.com/t/font_1463992151_360388.woff') format('woff'), / chrome firefox / url('https://at.alicdn.com/t/font_1463992151_360388.ttf') format('truetype'), / chrome firefox opera Safari, Android, iOS 4.2+*/ url('https://at.alicdn.com/t/font_1463992151_360388.svg#iconfont') format('svg'); }