我正在尝试修改Wordpress上下文相关帖子插件的样式。我用这种风格:http://kevin.deldycke.com/2012/04/beautify-contextual-related-posts-wordpress-plugin/ 并通过反复试验,取得了这一点吧:css显示:块在相关文章中不起作用
.crp_related {
clear: both;
margin: 10px 0;
display: block;
}
.crp_related h3 {
margin: 0 !important;
}
.crp_related ul {
list-style: none;
float: left;
margin: 0 !important;
padding: 0 !important;
display: block;
}
.crp_related li, .crp_related a {
float: left;
overflow: hidden;
position: relative;
text-align: left;
display: block;
}
.crp_related li {
margin: 5px !important;
display: block;
}
.crp_related a:hover {
text-decoration: underline;
}
.crp_related .crp_title {
color: #000;
position: relative;
left: 15px;
font-size: 1.3em;
font-weight: bold;
}
.crp_related .crp_excerpt {
position: relative;
left: 15px;
color: #333;
height: inherit;
margin-left: 25px;
}
.crp_clear {
clear: both;
}
它看起来像这样:http://nl.meetinghalfway.eu/2013/09/welkom-bij-meeting-halfway/
这看起来已经非常相似,我想要的东西,但我会就像标题之后的换行符一样,如果可能的话,我还希望文本摘录可点击。
我试图在各个地方与display: block;
断行但没有任何效果。
可以控制插件的标记(HTML)? – hungerstar
你能否提供这些类正在使用的HTML标记? – Ricky