把这些东西放在网页的最后

时间:2017-06-25 09:43:27

标签: html css

它需要css位于网页的末尾,但我不知道要执行此操作的代码 把这些东西放在网页的最后 联系/ faq / tos @imgserv 2017

http://prntscr.com/fnwekr

是这样的> http://prntscr.com/fnwf81

我的代码

<html>
<head>
<title>image sharer</title>
</head>

<body>
<h2>version 1.0</h2>
<form action="upload.php" method="post" enctype="multipart/form-data">
image selector :<input type="file" name="image"><br/><br/>
your imgtxt <input type="text" name="desc"><br/><br/>
<input type="submit" name="upload" value="upload">
</form>

<a href="/tos" class="bottomLinks">tos</a> <a href="/faq" class="bottomLinks">faq</a> <a href="/contact" class="bottomLinks">contact</a> 
    <span id="footerRight" class="copyright footerFont"><strong>@imgserv 2017 </strong></span>
    </div>




<?php
    if(isset($_POST['upload'])){
    $image_name = $_FILES['image']['name'];
    $image_type = $_FILES['image']['type'];
    $image_size = $_FILES['image']['size'];
    $image_tmp_name= $_FILES['image']['tmp_name'];
    @$desc = $_POST['desc'];


move_uploaded_file($image_tmp_name,"uploads/$image_name");
echo "<img src='uploads/$image_name' width='400' height='250'><br>$desc";





}
?>
</body>
</html>

1 个答案:

答案 0 :(得分:0)

我为你要找的结果添加了一个JSFiddle。基本上我所做的是创建了一个footer标记,并通过CSS为position:absolute;bottom:0;width:100%; background:#000;提供了一些规则(所以你可以看到它附加在底部。)

这是结果的JSFiddle。 https://jsfiddle.net/s96smh1u/