if ($cboxes = $dbi->query($vbox_result, 0)) {
foreach ($cboxes as $video) {
$title = stripslashes ($video["title"]);
$wordWrappedTitle = wordwrap($title, 25, "\n");
$full_title = stripslashes(str_replace("\"", "",$video["title"]));
$url = $site_url.'video/'.$video["id"].'/'.seo_clean_url($full_title) .'/';
echo '
<div id="video-'.$video["id"].'" class="video">
<div class="thumb">
<a class="clip-link" data-id="'.$video["id"].'" title="'.$full_title.'" href="'.$url.'">
<span class="clip">
<img src="'.$video["thumb"].'" alt="'.$full_title.'" /> <span class="vertical-align"></span>
</span>
<span class="overlay"></span>
</a>
<span class="timer">'.sec2hms($video["duration"]).'</span>
</div>
这是更新的代码。那会奏效吗?
我的 [标题] 太长了。我只需要知道在哪里添加自动换行。我想我确实需要更多的练习。我想试一试。