- 博客(9)
- 资源 (2)
- 收藏
- 关注
原创 margin 塌陷 和 margin合并问题
margin 塌陷 给父级设置边框或内边距(不建议使用) 触发bfc(块级格式上下文),改变父级的渲染规则 margin合并margin合并问题也可以用bfc解决 在实际应用时,在margin合并这个问题上,我们一般不用bfc,而是通过只设置上面的元素的margin-bottom来解决距离的问题...
2022-03-21 17:44:17
166
原创 react-navigation 4.x 5.x 自定义切换动画
我的react-navigation 配置 "react-navigation": "^4.0.10", "react-navigation-stack": "^2.0.15",解决方案import { TransitionPresets } from 'react-navigation-stack';{ initialRouteName: 'Index', defau...
2020-04-27 11:04:47
1581
原创 mac 开发RN 运行报错Make sure you have the Android development environment set up
Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI wit...
2020-01-05 16:14:50
2457
原创 Command PhaseScriptExecution failed with a nonzero exit code
找了很多久 大部分都是1.Xcode菜单栏选择File-- Workspace Setting,把new build system(Defalt)切换到Legacy Build System2.clean 项目然而并没有用,现在提供我的方法 供参考-------查看Phase 面板 清除Script如图所示有其他方法也可留言评论...
2019-12-10 10:38:57
5088
2
原创 react 单页面跳转 页面位置 前进页面滚动到顶部 返回页面滚动到上次浏览的位置
react 单页面跳转 页面位置 前进页面滚动到顶部 返回页面滚动到上次浏览的位置添加以下代码 完美解决var offsetTop = 0;var canPoP = true; //push可能会触发pop在这节流hashHistory.listen(location => { if (canPoP) { canPoP = false; if (locat...
2019-08-16 08:49:06
2912
3
原创 IE不支持remove方法
使用js删除节点发现IE不支持remove方法,在这提供解决办法:// IE 兼容remove方法 (function (arr) { arr.forEach(function (item) { if (item.hasOwnProperty('remove')) { return; }...
2019-08-15 16:45:15
553
原创 华为荣耀 自带浏览器 position:fixed 底部被工具栏遮挡 解决办法
head中添加<meta name="x5-fullscreen" content="true">
2019-08-15 16:38:43
4899
vux 全国省市县数据 下载
2019-08-16
antd picker组件 全国省市县数据
2018-09-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人