它需要将 css 放在网页的末尾,但我不知道执行此操作的代码 在网页末尾制作东西 联系方式/常见问题解答/tos @imgserv 2017
变成这样> 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>
最佳答案
我为您要查找的结果添加了一个 JSFiddle。基本上我所做的是我创建了一个 footer
标签,并通过 CSS 给它 position:absolute;
, bottom:0;
制定了一些规则, width:100%;
background:#000;
(所以你可以看到它附加到底部)。
这是结果的 JSFiddle。 https://jsfiddle.net/s96smh1u/
关于html - 在网页末尾制作东西,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44745098/