我不是css / html专家,所以如果我无法正确解释问题,我很抱歉。
我有2个不同主题的Wordpress网站,我使用相同的小部件来显示标签。在第一个网站中,我们将其命名为 A ,即使标记必须中断,标记也会在同一行中逐个显示。在第二个网站中, B ,标签也会在另一个网站上显示,但如果标签的所有字词都不在同一行,则此标记会转到下一行。
更新:我在 B 中获得的内容是这样的:
第一个标签
非常大的第二个标签
但是在 A 中我得到了这个:
第一个标签非常大
第二个标签
这些标签是不同的元素,每个元素都由a和span组成。
这会在标签云中产生我不喜欢的白色空白。我尝试通过firefox检查两个主题css并比较它们以确定要做什么,但找不到原因。我通过firefox检查元素对 B 中的 A 做了任何改动,但它没有用。
我在下面的两个网站中放置了firefox为元素div#tag-groups-cloud-tabs ...提供的所有css代码:
网站 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;
}