我正在尝试嵌入一个大图像,其大小指定为容器的百分比并保持纵横比。我有我认为正确的 HTML,第一张图片按预期显示,但第二张显示来自 alt=.
的文本`<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<TITLE>Favorite Things</TITLE>
<META name="KEYWORDS" CONTENT="filk">
<style>
<!--
.verse {text-align: center; font-size: 2em;}
-->
</style>
</head>
<BODY LANG="en-US" DIR="LTR">
<H1 align=center style="font-size:4em;">My Favorite Things</H1>
<p>
[Verse]
</p>
<p class="verse">
<a href="https://en.wikipedia.org/wiki/Ungoliant">Gardening spiders</a>
<br>
And <a href="https://en.wikipedia.org/wiki/Middle-earth_weapons_and_armour#Narsil">swords that are broken</a>
<br>
Words in the <a href="https://en.wikipedia.org/wiki/Black_Speech">Black Speech</a>
<br>
That must not be spoken
<br>`
<a href="https://en.wikipedia.org/wiki/Denethor">Unfaithful stewards</a>
<br>
Who don't want their kings
<br>
These are a few of my favorite things.
</p>