方法一:背景图片(推荐) 好处是,图片长宽不等的情况下图片不会变形

.ui-photo {
width: 100px;
height: 100px;
background: url("img/test.jpg") no-repeat;
background-position: center;
background-size: 100px;
border-radius: 50%;
}
<div class="ui-photo"></div>

效果:

方法二:img标签

.ui-photo1 img{
width: 100px;
height: 100px;
border-radius: 50%;
}
<div class="ui-photo1">
<img src="img/test.jpg"/>
</div>

效果:

最新文章

  1. 怎样给Myeclipse配置tomcat服务器
  2. 稳定的奶牛分配 &amp;&amp; 二分图多重匹配+二分答案
  3. rsa加密--选择padding模式需要注意的问题。。。
  4. 计算机术语install和setup的区别
  5. psp开发------汉化插件
  6. 那些著名或非著名的iOS面试题-前编
  7. web工程调用hadoop集群1.2
  8. 禁掉a链接的几种方法
  9. mongodb 2.6.6 在window10下的安装
  10. Unix/Linux环境C编程入门教程(1) Solaris 11 64bit环境搭建
  11. MVC 之下载 我的实践
  12. set集合容器
  13. SQL server数据库备份还原问题备忘(亲测有效)
  14. .Net Core 2.0+ InfluxDB+Grafana+App Metrics 实现跨平台的实时性能监控
  15. hdu 4031 attack 线段树区间更新
  16. python3 分布式爬虫
  17. 开源顶级持久层框架——mybatis(ibatis)——day01
  18. 第二十一节:ADO层次上的海量数据处理方案(SqlBulkCopy类插入和更新)
  19. 查看python脚本的运行pid,让python脚本后台运行
  20. Charles 模拟服务器挂掉Rewrite tools

热门文章

  1. flutter image_picker使用照相机
  2. php7函数,声明,返回值等新特性介绍
  3. linux中的set -e 与set -o pipefail
  4. Prism框架中加载类库中时其中第三方类dll提示无法加载程序集
  5. video maker &amp; video tutorials
  6. Delphi数据集与记录
  7. Get started with Docker for Windows
  8. 进程间通信IPC与Binder机制原理
  9. springmvc使用swagger生成rest api文档
  10. centos6.8下安装破解quartus prime16.0以及modelsim ae安装