Chrome image border around rounded corners disappearing

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 18:04:43
methodofaction

This is an unfortunate webkit bug. The only workaround that I know about is converting your img into a div and then putting the img as a background image:

#contentImage {
  background: url('http://placehold.it/100x100') top left no-repeat;
  width: 100px;
  height: 100px;
  border: 1px solid #000; 
  border-radius: 8px;
  margin-right: 25px;
}

http://jsfiddle.net/ybPKJ/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!