css - How do I to add a css class on wordpress?
问题描述
I am trying to add a class on wordpress to round images, but I don't know how could I do this. I've already added on style.css
but it still doesn´t works. I'm using the Hueman Theme
and I've trying to follow this sample.
How could I do this ?
style.css in Apperance>Editor>style.css
.circular-image img {
width: 300px;
height: 300px;
-webkit-border-radius: 150px;
-moz-border-radius: 150px;
-ms-border-radius: 150px;
-o-border-radius: 150px;
border-radius: 150px;
}
Using
<div class="circular-image" style="text-align: center;"><img class=" aligncenter wp-image-119 size-thumbnail" src="http://ideiadinamica.com/wp-content/uploads/2018/09/10372571_10200376805178580_8449416293546333562_n-150x150.jpg" alt="" width="150" height="150" /></div>
解决方案
Wp-admin >外观>自定义然后在“附加css”部分中,添加您的代码
推荐阅读
- python - 如何将数据从 csv 文件导入 CNN?
- node.js - 在 windows 2008 服务器中杀死 node.exe 进程
- html - 如何将字符串从 unicode 转换为 html 实体
- android - NativeScript:在设备上为自己的应用程序“安装”是否有挂钩?
- javascript - 验证新密码并确认密码
- python - 通过 pip 安装 pytext 时如何解决此问题?
- javascript - 条件渲染 react-redux
- openpyxl - 工作表对象不可调用
- java - 如何使用logstash过滤java日志?
- php - 如何将值保存到表单中的变量