代码部署
将下面样式代码添加主题选项→定制风格,在“自定义样式”中:
- /** 修改关于本站css**/
- .about-img {
- text-align: center;
- background: url(https://wx2.sinaimg.cn/large/0066LGKLly1fjvq3dc19uj309q02sa9y.jpg) center center no-repeat;
- background-size: cover;
- height: 120px;
- border-radius:8px;
- margin: -10px -15px 30px;
- }
- .about-img img {
- float: none;
- border: 1px solid #ddd;
- border-radius: 50%;
- padding: 0px;
- height: auto;
- text-align: center;
- width: 120px;
- margin: 30px 0 0 0;
- }
- .about-name {
- text-align: center;
- font-size: 16px;
- position: relative;
- display: block;
- }
- .about-name {
- font-size: 16px;
- font-weight: 700;
- }
效果图如下:
(2019.4.12)说明:最新版知更鸟Begin主题已经支持头像居中显示,本博客不再使用此CSS。
若文章图片、下载链接等信息出错,请在评论区留言反馈,博主将第一时间更新!如果喜欢,请打赏支持本站,谢谢大家!
2018年2月2日 16:34 沙发
不错,这个代码好!收藏了先!