守則 -HTML,CSS盒模型問題
while($row=mysql_fetch_array($result))
{
<div class="feed_element">
<span class="feed_title">
<?php echo $row['user_id'];?>
</span>
<span class="feed_content">
<?php echo $row['feed_content']; ?>
</span>
</div>
的CSS -
.feed_title
{
background-color: #fed100;
min-width:100px;
float: left;
}
.feed_content
{
float: left;
min-width: 270px;
}
.feed_element
{
border-bottom-style: solid;
border-bottom-width: 10px;
}
問題 - 的DIV CLASS = 「feed_element」 負載沒有任何內容,只是邊框 的跨度的負載和它。 從它看起來跨度的加載出div。 我該如何糾正這個問題?
請顯示完成的,生成的HTML。 – 2010-11-02 11:45:27
我該怎麼做? – Sussagittikasusa 2010-11-02 11:48:11
不應該被標記爲「php」嗎? – tchrist 2010-11-02 11:59:33