开发者

anchor title attribute

The title is开发者_如何学编程 showing only the first word when you mouse over the link. How can I get the whole order description to show? Thanks

<a title=$row[order_description] href=order.php?order_id=$row[qid]><font class=fontblueData_sub> $row[prod_title]</font></a>


Put the attribute in quotes, like it's supposed to be.

<a title="..." ...


You need double quote.

title="$row[order_description"

<?php
echo("<a title=\"" . $row[order_description] . "\" href=\"order.php?order_id=\"" . $row[qid] . "\">" . $row[prod_title] . "</a>")
?>


As suggested above, the code should look like:

<a title="<?= $row[order_description]; ?>" href="order.php?order_id=<?= $row[qid]; ?>">
   <font class="fontblueData_sub"><?= $row[prod_title]; ?></font>
</a>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜