我正在嘗試修改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