【问题标题】:how to add url behind this image如何在这张图片后面添加网址
【发布时间】:2017-08-15 19:14:29
【问题描述】:

您好,这是自定义 PHP 管理面板。我想在管理面板中添加 URL 链接并为每个图像附加每个链接。下面是添加图片的代码

                                    while($client_images = mysql_fetch_array($client_images_query)){
                                    ?>
                                    <td class="response" style="width: 25%;">
                                    <img class="img-responsive" style="max-width: 40%;" src="uploads/<?php echo $client_images['image']; ?>" alt="" />

【问题讨论】:

    标签: php mysql image hyperlink


    【解决方案1】:

    你可以用

    包围标签
     <a href="http://www.google.com"><img class="img-responsive" style="max-width: 40%;" src="uploads/<?php echo $client_images['image']; ?>" alt="" /></a>
    

    【讨论】:

      【解决方案2】:
      <td class="response" style="width: 25%;">
      <a href="Your url">
      <img class="img-responsive" style="max-width: 40%;" src="uploads/
      <?php echo $client_images['image']; ?>" alt="" />
      </a>
      

      试试这个

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2022-10-18
        • 2013-12-08
        • 2019-04-08
        • 2014-05-17
        • 2010-12-03
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多