<div id="Box">
<div id="emailtextbox"><input type="text" size="40" /></div>
<div id="CheckBox1"><input type="checkbox" Name="Mr."/>Mr.</div>
<div id="CheckBox2"><input type="checkbox" Name="Mrs."/>Mrs.</div>
</div>
CheckBox 1显示,但CheckBox2没有。使用css我改变了两个复选框的位置,以确保它们没有堆叠在彼此之上,但这似乎不是问题。它们是相同的,所以我不明白为什么只有其中一个出现。
如果它有帮助,这是css:
#CheckBox1 {
margin-top: 700px;
width: 200px;
}
#CheckBox2 {
margin-top: 700px;
width: 400px;
}
答案 0 :(得分:1)
试试这个,
除去
<?php
ini_set('upload_max_filesize', '4M');
$filename = $_POST['filename'];
if(!isset($_FILES['filename'])){
echo "No file selected";
}
else{
$error=array();
$extension=array("xlsx","csv");
foreach($_FILES["filename"]["tmp_name"] as $key=>$tmp_name)
{
echo "<br/>Filename: ".$file_name=$_FILES["filename"]["name"][$key];
echo "<br/>Temporary: ".$file_tmp=$_FILES["filename"]["tmp_name"][$key];
echo "<br/>Size: ".$size=$_FILES["filename"]["size"][$key];
echo "<br/>Extension: ".$ext=pathinfo($file_name, PATHINFO_EXTENSION);
if(in_array($ext,$extension))
{
if(!file_exists("/var/www/html/phpsample/".$file_name)){
if(move_uploaded_file($file_tmp=$_FILES["filename"]["tmp_name"][$key], "/var/www/html/phpsample/".$file_name)){
//echo "Success on File Not Exist";
$insert = insertFile($file_name);
if($insert){
header("location: index.php?success=true");
}
else{
echo mysql_error();
}
//echo "File Not Exist";
//echo "<br/>Error: ".$error = $_FILES["filename"]["error"][$key];
//echo "<br/>php info: ".phpinfo();
}
}
else
{
$filename=basename($file_name,$ext);
$newFileName=$filename.time().".".$ext;
if(move_uploaded_file($file_tmp=$_FILES["filename"]["tmp_name"][$key], "/var/www/html/phpsample/".$newFileName)){
//echo "Success on File Exist";
$insert = insertFile($newFileName);
if($insert){
header("location: index.php?success=true");
}
}
//echo "File Exist";
}
//echo "Extension of file is in our array list";
}
else{
//array_push($error,"$file_name, ");
echo "The file you upload is not included in allowed file extension list.";
}
}
}
?>
答案 1 :(得分:0)
答案 2 :(得分:0)
尝试从样式中移除巨大的边距,它们确实显示出来!
答案 3 :(得分:0)
我的猜测是你使用了太多的margin-top而且它通过了父div高度。将margin-top
更改为5px。
<强> CSS 强>
#CheckBox1 {
margin-top: 5px;
width: 200px;
}
#CheckBox2 {
margin-top: 5px;
width: 400px;
}