前端 - 微信浏览器 css3圆角问题
问题描述
今天,我按照很正常的使用方式写了个圆角样式应用在一张图片上,在chrome浏览器和iPhone的微信浏览器看都很正常,但是到了Android的微信浏览器,就变得很奇怪,下面是完整的代码,这是jsbin的运行代码,也是我期望的效果。
在这里想请教一下大家,谢谢!
<html><head> <meta name='viewport' content='width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0'> <title></title> <style>html, body { margin: 0; padding: 0; text-align: center;}body { padding-top: 50px; background-color: #999;}.headimg { width: 150px; height: 150px; -webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%; border: 5px solid red;} </style></head><body><img src='http://t3.qpic.cn/mblogpic/9e64a806a808a55ca1ea/2000' alt=''></body></html>
问题解答
回答1:对不起各位,刚才是我自己脑袋秀逗了。
<html><head> <meta name='viewport' content='width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0'> <title></title> <style>html, body { margin: 0; padding: 0; text-align: center;}body { padding-top: 50px; background-color: #999;}.wrapper { background-color: #fff; padding: 5px; width: 150px; height: 150px; line-height: 150px; -webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%;}.headimg { width: 150px; height: 150px; -webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%;} </style></head><body><p class='wrapper'><img src='http://t3.qpic.cn/mblogpic/9e64a806a808a55ca1ea/2000' alt=''></p></body></html>
相关文章:
1. 最新版本的微信web开发者工具必须要APPID,会提供测试号,但是像你一样tabBar配置的话不会显示首页与日志,难道我要下载跟你一样的版本?2. mysql按照时间热度排序3. javascript - 图片请求失败怎么去掉左上角的小图标?4. mysql - phpMyAdmin无法导入数据5. css3 - 没明白盒子的height随width的变化这段css是怎样实现的?6. php - 微信开发验证服务器有效性7. javascript - 在nodejs的程序里面怎么理解IO呢,如何用一段代码来说明IO8. html5 - 用h5本地存储是否安全?9. 求救一下,用新版的phpstudy,数据库过段时间会消失是什么情况?10. css3 - Firefox 字号相对IE、Chrome更大,如何在CSS中统一?

网公网安备