Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
<?php $image = "image-link.png"; $width = 300; $height = 280; echo '<img src="'.$image.'" style=width:"' . $width . 'px;height:' . $height . 'px;">'; ?>
我只是希望能够单击图像,它将转到外部链接。我对下一步该怎么做感到困惑
echo '<a href="http://stackoverflow.com"><img src="'.$image.'" style=width:"' . $width . 'px;height:' . $height . 'px;"></a>';
现在单击图像将带您到 stackoverflow.com