1
所以我爲我的網站創建了一個佈局。我無法顯示我的網站條目/帖子。這裏是我的源代碼:不正確的CSS呈現?
<div id="post-101" class="post-101 post type-post status-publish format-standard hentry category-Information category-Update">
<h2 class="entry-title">
<a href="http://localhost/bleachin/?p=101">TITLE</a>
</h2>
<div class="entry-content">
CONTENT
</div><!-- .entry-content -->
<div class="entry-meta">
META
</div><!-- .entry-meta -->
</div><!-- #post-101 -->
<div id="post-100" class="post-100 post type-post status-publish format-standard hentry category-Information">
<h2 class="entry-title">
<a href="http://localhost/bleachin/?p=100">TITLE 2</a>
</h2>
<div class="entry-content">
CONTENT
</div><!-- .entry-content -->
<div class="entry-meta">
META
</div><!-- .entry-meta -->
</div><!-- #post-100 -->
理論上這應該是正確的。但是當我試圖在.post
上添加邊框時,一切都變得怪異。下面是它的外觀與.post { border-bottom:10px; }
我與Chrome和Firefox進行了測試(如我的大多數成員正在使用這些)。兩者都導致相同的奇怪的外觀。
對此有何幫助?
完美。我花了幾個小時對HTML感到困擾,實際上它是一個CSS問題。非常感謝!另外,感謝提醒。 – deathlock
我過去多次碰到這個確切的問題,最初把我的(隱喻的)頭髮拉出來。我很高興你在這之前設法解決了這個問題! :) – Bazzz
是的,感謝您的幫助! :) – deathlock