dougan1205 2015-12-18 01:50
浏览 36

Html类泄漏

Hi super simple question here,

I am making an upload page for my website and am attempting to implement a download bar. No php is hooked into it yet but I am trying to make the layout. All is good however I can not seem to find out why my class wont apply to the upload bar..the first class is "leaking" into it if you will. I tried to google it first but everything is very broad obviously. Progress bar starts at ther bottom of the html. Sorry for the wall I didnt know where I steered wrong.

progress bar dream... enter image description here

progress bar reality... enter image description here closer look: http://samplepackgenerator.com/phUploader.php

THE HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<link rel="stylesheet" type="text/css" href="mystyle.css">
<head>
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><?php echo $samplepackgenerator; ?>Upload Sounds</title>
</head>
<?
If($password_form) {

    Echo $password_form;

} Else {
?>

<form action="<?=$_SERVER['PHP_SELF'];?>" method="post" enctype="multipart/form-data" name="phuploader">
<body align="center" class="mbr-box mbr-section mbr-section--relative mbr-section--fixed-size mbr-section--full-height mbr-section--bg-adapted " id="header2-0" style="background-image: url(assets/images/studio2.png);">
    <tr>
        <td class="table_header" colspan="2"><b><?=$samplepackuploader;?></b> </td>
    </tr>

    <?If($display_message){?>
    <tr>
        <td colspan="2" class="message">
        <br />
            <?=$display_message;?>
        <br />
        </td>
    </tr>
    <?}?>

    <tr>
        <td colspan="2" class="upload_info">
            <b>Allowed Types:</b> <?=implode($allow_types, ", ");?><br />
            <b>Max file size:</b> <?=$max_file_size?>kb.<br />
        </td>
    </tr>
    <?For($i=0;$i <= 0;$i++) {?>
        <tr>
        <!--    <td class="table_body" width="80%"><input type="file" name="file[]" size="30" /></td> -->
        </tr>
    <?}?>
    <tr>
        <td colspan="2" align="center" class="table_footer">
        <div> 



<!--     Upload       -->       
        <a href="#" class="mbr-buttons__btn btn btn-lg animated fadeInUp delay btn-default" type="button" name="file[]" onclick="document.getElementById('fileID').click(); return true;">Upload</a> <input id="fileID" name="file[]" multiple="multiple" type="file" style="visibility: hidden; " />





<!--     Confirm       -->          
            <input class="mbr-buttons__btn btn btn-lg animated fadeInUp delay btn-default" type="submit" value=" Confirm " name="submit" /> 

<!--     Back       -->         
        <a         class="mbr-buttons__btn btn btn-lg animated fadeInUp delay btn-default" href="index.html"  >Back<a 

        </a>


        </div>


        </td>
    </tr>



</body>
</form>
<?}//Please leave this here.. it really dosen't make people hate you or make your site look bad.. ?>




<tr>
        <td colspan="2" align="center" class="progress">
<div class="progress">
  <div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="50" style="width: 100%;">
    <span>HELLO</span>
  </div>
</div>
    </td>
    </tr>




</html>

THE CSS

body{
    padding: 30px;
    width: 40%;
}
.progress span{
    display: block;
    position: absolute;
    width: 30%;
}
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
    • ¥20 怎么用dlib库的算法识别小麦病虫害
    • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
    • ¥15 java写代码遇到问题,求帮助
    • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
    • ¥15 有了解d3和topogram.js库的吗?有偿请教
    • ¥100 任意维数的K均值聚类
    • ¥15 stamps做sbas-insar,时序沉降图怎么画
    • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
    • ¥15 关于#Java#的问题,如何解决?