关于一些css属性在微信上不兼容的解决方法
来源:互联网 发布:linux file命令 编辑:程序博客网 时间:2024/06/11 18:58
最近在搞一个微信端的项目,在电脑测试就可以,但是放在微信端就出现不兼容的问题。比如css动画,背景图片显示不完全。一开始不懂,就上网就百度,找到了解放方法。所以在这里跟大家分享一下。希望对各位有用。
1.关于css动画解决方法
关键帧:
@keyframes run{0%{bottom: -300px;}50%{bottom: -150px;}100%{bottom: 0px;}} @-webkit-keyframes run{ 0%{bottom: -300px;}50%{bottom: -150px;}100%{bottom: 0px;} } @-moz-keyframes run{ 0%{bottom: -300px;}50%{bottom: -150px;}100%{bottom: 0px;} } @-o-keyframes run{ 0%{bottom: -300px;}50%{bottom: -150px;}100%{bottom: 0px;} } @-ms-keyframes run{ 0%{bottom: -300px;}50%{bottom: -150px;}100%{bottom: 0px;} }
动画:
animation: run 1s linear;-webkit-animation: run 1s linear;-moz-animation: run 1s linear; -o-animation: run 1s linear; -ms-animation:run 1s linear;-webkit-transition:all 1s linear;-moz-transition:all 1s linear;-ms-transition:all 1s linear;-o-transition:all 1s linear;
transition: all 1s linear;animation-fill-mode: forwards;-webkit-animation-fill-mode:forwards;
-moz-animation-fill-mode:forwards;-ms-animation-fill-mode:forwards;-o-animation-fill-mode:forwards;
一定要记住在微信端上一定要加-webkit-前缀
背景高度问题
解放方法:就是你给个固定的高度,因为你宽度给的是100%,所以也不怕会变形之类的。
我解决的方法是这样子,不知道小伙伴们有没有更好的办法,可以说说哦,呵呵呵。
0 0
- 关于一些css属性在微信上不兼容的解决方法
- CSS兼容的一些解决方法
- 我在微信上遇到的一些坑
- 关于ecshop不兼容jquery的解决方法
- ie6关于css的不兼容
- css+div fixed属性定位在ie中不兼容的解决办法
- 关于微信上的一些转发即可得iphone的骗术
- 一些你不知道的CSS属性
- CSS一些不知道的属性
- 关于disabled 属性在FF 浏览器上不兼容的问题! 我找到了答案!
- 关于css排版的一些属性
- 关于css important属性的一些想法
- Css浏览器兼容的解决方法
- span border-top,border-bottom属性在IE不显示解决方法,兼容IE ,Chrome,Firefox
- 你可能不知道的CSS的一些属性
- css关于margin在不同浏览器下的兼容
- iframe框架高度自适应在兼容模式下(ie7)不兼容的解决方法
- 强制不换行与强制换行的一些CSS属性
- 封装HTTPRequestSerializer 的知识(一)
- 关于HBase协处理器导致问题的研究
- 使用 AngularJS 的路由和模板实现单页应用 (Single Page)
- 多媒体应用练习---照相机开发
- 通过文件分类实现程序内敛
- 关于一些css属性在微信上不兼容的解决方法
- PLM系统与选择
- Objective-C - runtime 之 Class 和 Meta Class
- Shell编程(2):符号相关
- Markdown 11种基本语法
- HDU 3652 B-Number(数位dp)
- C++实现通过年份与天数判断月份日期
- Linux中ps命令的简单使用
- Sqlplus无法使用上下左右键的问题