开发者

how to add image

I have to add static header image to simple html page ,which has two div tags -

 &开发者_StackOverflow社区lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1 /DTD/xhtml1-strict.dtd">
    <html>
    <head>
            <title>mysite</title>
            <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
            <link rel="stylesheet" type="text/css" href="site.css"/>
            <script type="text/javascript" src="jquery-1.4.2-min.js"></script>
            <script type="text/javascript" src="site.js"></script>

    </head>
    <body>
        <img src="header.jpg"/> ----> this image is not working 
        <div id="site"></div>
        <div id="doc" class="documents"></div>
</body>
</html>

two div tags working fine ..but i can't see image


Put static image into another div tag.. like this

<body>
    <div id="static"> <img src="header.jpg"/> <div>
    <div id="site"></div>
    <div id="doc" class="documents"></div>

and Note that your image must be on the same directory

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜