私は問題があります、私はHTMLの問題があります、私は最良の方法を使用しているかわからないので、ここに私の問題です: Everthing okです:私はここで、より多くのスペースを持っている場合はhttp://screencast.com/t/uJmffaxE
は、問題を始めている。ここでhttp://screencast.com/t/1z1GRhOLK
は私のコードは次のとおりです。私のPHPループから正しいHTMLを出力する最良の方法は何ですか
<div id="wrap-categories" class="clearfix">
<?php if($this->categories !== false): ?>
<ul>
<?php foreach($this->categories as $category):?>
<li>
<strong><?=$category['name']?></strong><br />
<?php if($this->artistsHelper($category['id']) !== false): ?>
<?php foreach($this->artistsHelper($category['id']) as $artist): ?>
<p><?=$artist['name']?></p>
<?php endforeach; ?>
<?php endif; ?>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
そして、ここれますどのように生成されたときにマークアップは、次のようになります。
<div id="wrap-categories" class="clearfix">
<ul>
<li>
<strong>Dj's</strong><br />
<p>Big fuckin'artists</p>
<p>asddssdadsasda</p>
<p>Gigle bossu</p>
</li>
<li>
<strong>Make up</strong><br />
<p>Cool</p>
</li>
<li>
<strong>Mamam</strong><br />
</li>
<li>
<strong>Tata</strong><br />
</li>
<li>
<strong>Dawaj</strong><br />
</li>
<li>
<strong>Sexy</strong><br />
</li>
<li>
<strong>Bitch</strong><br />
</li>
<li>
<strong>Armin</strong><br />
</li>
<li>
<strong>Lol</strong><br />
</li>
<li>
<strong>Gogu</strong><br />
</li>
<li>
<strong>Penal</strong><br />
</li>
<li>
<strong>Asasin</strong><br />
</li>
</ul>
</div>
CSS
#wrap-categories ul li{
float:left;
margin-right:10px;
}
すべてのヘルプしてください!
すべての空白でマークアップが大きく表示されるという問題はありますか? – ChaosPandion
http://screencast.com/t/1z1GRhOLKここでは、カテゴリ(強いタイトル)は最初のカテゴリになります。 – Uffo
表形式のデータを表示する場合は、表を使用してください。 – Sampson