2013-10-30 67 views
-1

這是一個問題沒有回答關於wordpress.stackoverflow,它不需額外回答原因被擱置:(缺少內容WP富文本

我已經從HTML到WP做了一個模板,似乎是一切都wonking完美,直到我試圖用陳述文字與BOLD斜體。所示FLAT在崗的所有文字,只能說明

<div class="property-description"> 
?php the_content();?> 
</div> 

CSS

預編碼的顏色(主題顏色字體)。
content { 
max-width:1000px; 
} 
.property-description { 
color: #777777; 
padding: 10px 0 20px 0; 
line-height: 1.4em; 

} 

我具有附加線,不涉及所描述的代碼,我試圖添加使用.property-description p{}改變段的碼,但我有相同的結果。 是否有任何代碼覆蓋以前的代碼。錯誤應該只在這個主題的CSS上。

最好的問候!

+0

顯然有一個很好的理由把問題擱置? – putvande

回答

0

我發現問題,使得Wordpress不顯示格式化文本。在style.css中,我看到了大多數樣式標籤的重置行;以前我曾使用過這種重置來獲得一個很好的響應網站,但是,今天顯示豐富文本內容的結果很亂。所以我決定從這條重置線刪除一些標籤。
復位線是這個

Reset & Basics (Inspired by E. Meyers)
================================================== */
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, img, ins, kbd, q, s, samp, small, strike, strong, sub, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video
margin : 0;
padding : 0;
border : 0;
font-size : 100%;
font : inherit;
vertical-align : baseline;


所以我刪除標籤EM,強,iframe中,表而另一些被打破了豐富的文本內容;現在我的網站完美運作。