<?php
<div>
<img src="img001.png">
<p style="background:url('img001.png') no-repeat;">background-image</p>
</div>
echo "欢迎使用留言板系统";
echo '
<form action="message.php" method="post"">
<label>
用户名:<input type="text" name="name" id="name"/><br/>
</label>
<label>
密码:<input type="password" name="password" id="password"/><br/> 
</label>
    <input type="submit" value="登录">
</form>
';
?>
<div>
...
</div>这段我是在网上看到的,但是我觉得好像有点牛头不对马嘴。请各位大哥教教我。PHP图片

解决方案 »

  1.   

    <div>
    <img src="img001.png">
    <p style="background:url('img001.png') no-repeat;">background-image</p>
    </div>
    <?php echo "欢迎使用留言板系统";
    echo '
    <form action="message.php" method="post"">
    <label>
    用户名:<input type="text" name="name" id="name"/><br/>
    </label>
    <label>
    密码:<input type="password" name="password" id="password"/><br/> 
    </label>
        <input type="submit" value="登录">
    </form>
    ';
    ?>
    <div>
      

  2.   

    <div style="background:url('img001.png') no-repeat; width:375px; height:185px;">
    <img src="img001.png">
    <p>background-image</p>
    <?php echo "欢迎使用留言板系统";
    echo '
    <form action="message.php" method="post"">
    <label>
    用户名:<input type="text" name="name" id="name"/><br/>
    </label>
    <label>
    密码:<input type="password" name="password" id="password"/><br/> 
    </label>
        <input type="submit" value="登录">
    </form>
    ';
    ?>
    <div>宽高自已调
      

  3.   


    这样是成功了,但是呢,我想的是这图片能占满屏,我的输入什么的在图片之上,兄台,有时间的花可以写写吗?如果涉及到其他超越PHP的知识,兄台简单提一下就行。
      

  4.   

    you need to learn "How to Make love(HTML)" first,
      

  5.   


    <div style="background:url('img001.png') no-repeat; width:375px; height:185px;">
    <?php echo "欢迎使用留言板系统";
    echo '
    <form action="message.php" method="post"">
    <label>
    用户名:<input type="text" name="name" id="name"/><br/>
    </label>
    <label>
    密码:<input type="password" name="password" id="password"/><br/> 
    </label>
        <input type="submit" value="登录">
    </form>
    ';
    ?>
    <div>width:375px; height:185px;宽高自已调 
      

  6.   


    仁兄,我觉得你加个with的话,更有味!呵呵,不过不地道就是。