【发布时间】:2018-09-23 02:25:03
【问题描述】:
我正在创建一个网站,该网站将几本书的封面显示为图像。图像显示正常,除非我在 img 标签周围放置标签(因为我想将图像链接到书的 pdf):
<!-- Bookshelf -->
<ul class='list-inline'>
<li class='book'>
<a href="./books/Things Fall Apart – Achebe.pdf" target="_blank">
<img src='./img/bookshelf/things-fall-apart.jpg'>
</a>
</li>
<li class='book'>
<img src='./img/bookshelf/to-the-lighthouse.jpg'>
</li>
Picture of the distorted image next to a normal image
我不确定这个错误是由 html、css 还是 javascript 问题引起的,但我在下面发布了 github 和网站:
https://readcoloringbooks.netlify.com/
https://github.com/ShanRauf/ReadColoringBooks
【问题讨论】:
-
anchor 标签的默认样式可能会给您带来意想不到的结果。通过查看提供的图像,我看不出您解释的问题。 -
我也没有,我看不到问题所在。你能详细说明一下吗? :)
标签: javascript html css pdf