我不是css/html专家,所以如果我不能正确解释这个问题,我很抱歉。
我有两个不同主题的Wordpress网站,我使用相同的小工具来显示标签。在第一个站点中,让我们将其命名为A,标签在同一行中一个接一个,即使标签必须断开。在第二个站点B中,标签也会一个接一个,但如果标签的所有单词不能在同一行,则该标签会转到下一行。
更新:我在B中得到的是这样的:
第一个标签
超大第二标签
但在A中,我得到了这个:
第一个标签非常大的
第二标签
这些标记是不同的元素,每个元素由a和span组成。
这使得标签云中出现了我不喜欢的白色间隙。我试图通过firefox检查两个主题css,并对它们进行比较,以确定该做什么,但找不到原因。我通过firefox检查元素在A和B中进行了任何更改,但没有起作用。
我把firefox为元素div提供的所有css代码#tag groups cloud tab。。。在以下两个站点:
对于站点A:
inline 139:
*::-moz-selection {
background: none repeat scroll 0% 0% rgb(73, 138, 184);
}
style.css 137:
*::-moz-selection {
background: none repeat scroll 0% 0% rgb(73, 138, 184);
color: rgb(255, 255, 255);
}
inline:
element {
}
style.css 40:
*, html, body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, label, fieldset, input, p, blockquote, th, td {
margin: 0px;
padding: 0px;
outline: 0px none;
vertical-align: baseline;
background: none repeat scroll 0% 0% transparent;
}
style.css 104:
* {
outline: medium none;
}
style.css 197:
body {
font: 13px/20px tahoma,'PT Sans',Arial,Helvetica,sans-serif;
color: rgb(67, 67, 67);
}
对于站点B:
style.css 470:
*::-moz-selection {
background: none repeat scroll 0% 0% rgb(36, 137, 13);
color: rgb(255, 255, 255);
text-shadow: none;
}
style.css 758:
.footer-sidebar:after, .hentry:after, .slider-direction-nav:after, .contributor-info:after, .search-box:after, [class*="content"]:after, [class*="site"]:after {
clear: both;
}
style.css 740:
.footer-sidebar:before, .footer-sidebar:after, .hentry:before, .hentry:after, .slider-direction-nav:before, .slider-direction-nav:after, .contributor-info:before, .contributor-info:after, .search-box:before, .search-box:after, [class*="content"]:before, [class*="content"]:after, [class*="site"]:before, [class*="site"]:after {
content: "";
display: table;
}
inline:
element {
}
rtl.css 34:
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
border: 0px none;
font-family: Tahoma;
font-size: 100%;
font-style: inherit;
font-weight: inherit;
margin: 0px;
outline: 0px none;
padding: 0px;
vertical-align: baseline;
}
style.css 64:
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
border: 0px none;
font-family: inherit;
font-size: 100%;
font-style: inherit;
font-weight: inherit;
margin: 0px;
outline: 0px none;
padding: 0px;
vertical-align: baseline;
}
style.css 2073:
.widget {
font-size: 14px;
-moz-hyphens: auto;
line-height: 1.28571;
word-wrap: break-word;
}
style.css 2055:
.content-sidebar {
color: rgb(118, 118, 118);
}
rtl.css 121:
body, button, input, select, textarea {
color: rgb(43, 43, 43);
font-family: Tahoma;
font-size: 16px;
font-weight: 400;
line-height: 1.5;
}
rtl.css 101:
body {
direction: rtl;
}
style.css 102:
body, button, input, select, textarea {
color: rgb(43, 43, 43);
font-family: Lato,sans-serif;
font-size: 16px;
font-weight: 400;
line-height: 1.5;
}
对于单行语句,请使用white-space:nowrap;
请参阅此处的演示