[问题] 块状超连结语言写法

楼主: 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