[問題] 塊狀超連結語言寫法

作者: elderbear (曖昧不好不要曖昧)   2022-09-26 17:28:55
我以往維護網頁都是土法煉鋼把前人拿來修改
現在想要在超連結上呈現塊狀連結的效果
然後google到 http://www.study-area.org/coobila/tutorial_535.html#
其中包含了塊狀連結的案例
但因為我原本都沒有使用css,都用很簡單的語法來呈現內容而已
(就是< a href="超連結網址" >超連結名稱< /a > 這種程度而已)
想問有沒有不用使用css就能呈現塊狀連結的寫法呢?
<tr style="height: 16.8pt;">
<td class="xl69" style="height: 16px; border-right: 1pt solid white;
border-top-color: white; width: 15%; border-bottom: 1pt solid white;
border-left-color: #f0f0f0; background-color: #d5f3fd;" width="138"
height="22"><span style="font-family: 'times new roman', times, serif;
font-size: 10pt;">時間</span></td>
<td class="xl70" style="border-right: 1pt solid white; border-top-color:
white; width: 66.8171%; border-bottom: 1pt solid white; border-left-color:
white; background-color: #d5f3fd; height: 16px;" width="401"><span
style="font-family: 'times new roman', times, serif; font-size:
10pt;">>影片</span></td>
<td class="xl70" style="border-right: 1pt solid white; border-top-color:
white; width: 18.1829%; border-bottom: 1pt solid white; border-left-color:
white; background-color: #d5f3fd; height: 16px;" width="112"><span
style="font-family: 'times new roman', times, serif; font-size:
10pt;">人名</span></td>
</tr>
基本上就是寫好三行的表格
然後想把超連結鑲嵌在影片這格的整個儲存格
想知道有沒有繼續這種寫法就能做出來的辦法
感謝~
作者: cqwt (tony)   2022-09-26 17:55:00
style裡面就是css
作者: harry9522016 (愷)   2022-09-27 14:42:00
a標籤display改為block,並設定寬高皆為100%,應該就可以做到<a href="#" style="display:block; width:100%;height: 100%;"><span>影片</span></a>
作者: art1 (人,原來不是人)   2022-09-28 17:15:00
聽起來是在問網頁連結不用 CSS,要怎麼自訂出想要的外觀雖然能做到的原理也是靠 CSS,但 bootstrap 只需要知道class對應哪種效果就能用了booststrap 有個 .btn-block 可能能達成你想要的效果

Links booklink

Contact Us: admin [ a t ] ucptt.com