既然指出了执行一项任务几乎总是有更简单的方法,现在就说明用兔子图片替换帽子图片的简单得多的办法。
Since I've pointed out that there is almost always an easier way to perform a task, I'll now show you that there's a much easier way to replace the top hat image with the rabbit image.
这里首先用兔子的图片替换页面中原有的图片(再看看图1),如图2所示。
In this case, begin by replacing the image in the existing page (refer back to Figure 1) with an image of a rabbit, like that shown in Figure 2.
也就是希望(用带兔子的新图片)替换的img元素,因此将HTML改为清单2的形式。
That's the img element you want to replace (with a new image containing the rabbit); so you need to change our HTML to look like Listing 2.
应用推荐