-2
<H1>Search Engines</H1>
<B><a href="http://www.yahoo.co.uk/">Yahoo</a></B><br>
<I><a href="https://www.excite.com/">Excite</a></I><br>
<U><a href="https://www.google.com/">Google</a></U><br>
<B><font color="#000000">Note: Click on the links, they will take you to the following websites! </font></B>
<H1></H1>
<img src ="Google.gif">

</body>
</html>
4

1 回答 1

0

您可以在图像上添加宽度和高度。您可以在 html 或 css 中添加它。

在 HTML 中添加宽度和高度

img {
border: 1px solid black
}
<H1>Search Engines</H1>
<B><a href="http://www.yahoo.co.uk/">Yahoo</a></B><br>
<I><a href="https://www.excite.com/">Excite</a></I><br>
<U><a href="https://www.google.com/">Google</a></U><br>
<B><font color="#000000">Note: Click on the links, they will take you to the following websites! </font></B>
<H1></H1>
<img src ="Google.gif" width="300px" height="300px"> <!--change the width and height value-->

在 CSS 中添加宽度和高度

img {
  display: block;
  width:300px;/* change this value */
  height:300px;/* change this value */
  border: 1px solid black
}
<H1>Search Engines</H1>
<B><a href="http://www.yahoo.co.uk/">Yahoo</a></B><br>
<I><a href="https://www.excite.com/">Excite</a></I><br>
<U><a href="https://www.google.com/">Google</a></U><br>
<B><font color="#000000">Note: Click on the links, they will take you to the following websites! </font></B>
<H1></H1>
<img src ="Google.gif" >

于 2020-11-04T13:00:50.580 回答