如何在HTML页面上增加图像的宽度?

时间:2016-04-06 15:18:28

标签: html

我正在尝试增加宽度和高度但是只有高度会增加而不是宽度,我有不同的宽度值,但没有任何变化我想要跨越页面宽度的一半,代码在下面。

<!DOCTYPE html>

<head>
    <meta charset="utf-8">
    <title>1st Exercise</title>
</head>



<body>

    <img src="http://salihkalkan.com/wp-content/uploads/demo-image-green-480x318.jpg" alt = "sorry the image cannot load" height="200" width-"2000">
    <h2>FIFA World Cup 2014 News</h2>
    <p>
            The biggest scoreline in the history of the <strong>FIFA World Cup</strong> qualifiers - and indeed in the history of international football - was recorded on 11 April 2001, when Australia beat American Samoa 31-0.
            <br>
            This legendary match also brought global renown for <em>Archie Thompson</em>, whose 13-goal haul set a new world record, which stands to this day, for an individual player in a single international match.
            <br>
            And though the defeat earned American Samoa ignominy, so inspiring has their subsequent recovery been that it is now the subject of an acclaimed documentary, <em>‘Next Goal Wins'</em>, showing across the world.
    </p>


    <h3>Destinations</h3>

</body>

1 个答案:

答案 0 :(得分:2)

width-"2000"应该是width="2000"