前端 - 微信瀏覽器 css3圓角問題
問題描述
今天,我按照很正常的使用方式寫了個圓角樣式應(yīng)用在一張圖片上,在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>
相關(guān)文章:
1. javascript - 微信網(wǎng)頁開發(fā)從菜單進入頁面后,按返回鍵沒有關(guān)閉瀏覽器而是刷新當前頁面,求解決?2. php傳對應(yīng)的id值為什么傳不了啊有木有大神會的看我下方截圖3. extra沒有加載出來4. mysql replace 死鎖5. android - 安卓做前端,PHP做后臺服務(wù)器 有什么需要注意的?6. python3.x - Python not 運算符的問題7. python - 數(shù)據(jù)與循環(huán)次數(shù)對應(yīng)不上8. mysql - ubuntu開啟3306端口失敗,有什么辦法可以解決?9. mysql - C#連接數(shù)據(jù)庫時一直這一句出問題int i = cmd.ExecuteNonQuery();10. 求救一下,用新版的phpstudy,數(shù)據(jù)庫過段時間會消失是什么情況?
