前端 - 微信瀏覽器 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. 為什么我ping不通我的docker容器呢???2. java - 自己制作一個視頻播放器,遇到問題,用的是內置surfaceview類,具體看代碼!3. 服務器端 - 采用nginx做web服務器,C++開發應用程序 出現拒絕連接請求?4. javascript - 有什么兼容性比較好的辦法來判斷瀏覽器窗口的類型?5. 關于docker下的nginx壓力測試6. javascript - vue 移動端的input 數字輸入優化7. javascript - Angular controlller控制域和原生js的關系8. javascript - npm start 運行’webpack-dev-server’報錯 Cannot find module ’webpack’9. HTML5禁止img預覽該怎么解決?10. python - pandas按照列A和列B分組,將列C求平均數,怎樣才能生成一個列A,B,C的dataframe
