1
当鼠标悬停在链接上时,标题仅显示第一个单词。我怎样才能让整个订单描述显示?谢谢锚标题属性
<a title=$row[order_description] href=order.php?order_id=$row[qid]><font class=fontblueData_sub> $row[prod_title]</font></a>
当鼠标悬停在链接上时,标题仅显示第一个单词。我怎样才能让整个订单描述显示?谢谢锚标题属性
<a title=$row[order_description] href=order.php?order_id=$row[qid]><font class=fontblueData_sub> $row[prod_title]</font></a>
您需要双引号。
title="$row[order_description"
<?php
echo("<a title=\"" . $row[order_description] . "\" href=\"order.php?order_id=\"" . $row[qid] . "\">" . $row[prod_title] . "</a>")
?>
将该属性放在引号中,就像它应该是的一样。
<a title="..." ...
如果使用双引号需要转义,也可以使用单引号。 – Gumbo 2010-12-05 07:49:35