HTML及CSS基礎課(六) Clickable Photo Page

來源:互聯網
上載者:User

這節課是練習課,在上一節課我們已經學了關於表格的一些東西,表格的功能不僅如此,還可以更強大。

這裡會先用到了CSS檔案,所以在工程中包含一個新檔案stylesheet.css。CSS的內容會在下一節課裡學習,這裡先不去講它。

css檔案stylesheet.css:

<span style="font-size:14px;">img {      width:100px;      height:100px;  }        table, td {      border: 1px #70b8ff dashed;  }</span>

更多精彩內容:http://www.bianceng.cn/web/Html/

表格裡也可以放置圖片,而且這個圖片也可以設定成帶超連結的,只要在<img>外麵包圍著<a>標籤即可。

<!DOCTYPE html>>   <html>      <head>      </a>          <link type="text/css" rel="stylesheet" href="stylesheet.css"  />          <title>My Photo Page</title>      </head>                <body>          <table>          <thead colspan='3'>              <th>Shuangde</th>          </thead>                        <tbody>              <tr>                                   <td>  <a href="http://blog.csdn.net/shuangde800"> <img src="http://img4.douban.com/view/photo/photo/public/p616776018.jpg" /></a></td>                  <td>  <a href="http://blog.csdn.net/shuangde800"> <img src="http://img3.douban.com/view/photo/photo/public/p1943390036.jpg" /></a></td>                  <td>  <a href="http://blog.csdn.net/shuangde800"> <img src="http://img3.douban.com/view/photo/photo/public/p511146957.jpg" /></a></td>                                    </tr>                                                  <tr>              <td>  <a href="http://blog.csdn.net/shuangde800"> <img src="http://img3.douban.com/view/photo/photo/public/p510861057.jpg" /></a></td>              <td>  <a href="http://blog.csdn.net/shuangde800"> <img src="http://img3.douban.com/view/photo/photo/public/p897378146.jpg" /></a></td>              <td>  <a href="http://blog.csdn.net/shuangde800"> <img src="http://img3.douban.com/view/photo/photo/public/p492406974.jpg" /></a></td>                                    </tr>                                <tr>              <td>  <a href="http://blog.csdn.net/shuangde800"> <img src="http://img4.douban.com/view/photo/photo/public/p456665648.jpg" /></a></td>              <td>  <a href="http://blog.csdn.net/shuangde800"> <img src="http://img5.douban.com/view/photo/photo/public/p455599589.jpg" /></a></td>              <td>  <a href="http://blog.csdn.net/shuangde800"> <img src="http://img3.douban.com/view/photo/photo/public/p457759533.jpg" /></a></td>                                    </tr>             </tbody>          </table>                    </body>  </html>

效果圖:

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.