2016-09-27 4 views
0

私はバグ私に始めている古典的なASP VBScriptページに問題があります。私はウェブデザイナーではなく、他の誰かのコードに取り組んでいます。ヘッダータグの下の最初のリンクはunclickableです

ヘッダーのすぐ下に表示されるリンクの最初のセットをクリックできないが、最初の行の後ろにあるリンクのいずれかがクリックできるという奇妙な問題がある。私はこれがページの要素が重なっている何らかの問題だと考えていますが、悲しいかな、答えは2時間後に解消されます。

以下は、ヘッダーを作成するループ(最初のループ)の例です。なぜこれが起こっているかについてのアイデアはすばらしいでしょう。

おかげ

Example

<div id="folderWrapper" style="width:100%; text-align:left; display:inline; float:left;"> 
 
     <!-- Loop through the folders in the specific directories to find all that start with a "_" (where documents are stored) --> 
 
     <% 
 
     dim fs,fo,x 
 
     set fs=Server.CreateObject("Scripting.FileSystemObject") 
 
     set fo=fs.GetFolder(server.MapPath(department)) 
 
     for each x in fo.SubFolders 
 
     %> 
 
       <%If Left(x.Name, 1) = "_" Then%> 
 
       <!-- Run the loop against only folders with the appendix of "_" as these are the folders with the files in.--> 
 
        <div id="folderDiv" style="width:100%; text-align:left; display:inline; float:left; padding-right:10px;"> 
 
        <!-- Create headers for each folder--> 
 
        <h6><%Response.Write(Right(x.Name,len(x.Name)-1))%></h6> 
 
         <% 
 
         ' Loop through files in folder 
 
         dim fs2,fo2,x2 
 
         set fs2=Server.CreateObject("Scripting.FileSystemObject") 
 
         set fo2=fs2.GetFolder(x) 
 
         for each x2 in fo2.files 
 

 
         ' Set fileType variable depending upon the left 4 or 5 chars. 
 
         dim fileType 
 
         If (Right(x2.Name,4)=".doc") or (Right(x2.Name,4)=".pdf") Then 
 
          fileType = Right(x2.Name,4) 
 
         End If 
 
         If (Right(x2.Name,5)=".docx") Then 
 
          fileType = Right(x2.Name,5) 
 
         End If 
 
         %> 
 
          <!-- DIV to contain the files and display the correct icon for .doc/.docx and .pdf files--> 
 
          <div id="fileDiv" style="width:450px; float:left; display:inline; margin-left:10px; background-image:url(../images/<%if (right(x2.Name,4) = ".doc") or (right(x2.Name,4) = "docx") then %>Word_Icon.gif <%end if%> <%if(right(x2.Name,4) = ".pdf") then %>PDF_Icon.gif <% end if %>); background-position:left; background-repeat:no-repeat; padding:10px 10px 10px 25px;" > 
 
           <%If fileType <> ".db" Then%> 
 
            <!-- If to deal with .doc and .pdf files (removes the .doc/.pdf extensions from the name when displayed on the page)--> 
 
            <%If (fileType=".doc") or (fileType=".pdf") Then%> 
 
             <a href="./<%Response.Write(department) %>/<%=x.Name%>/<%=x2.Name%>" target="Form"><%=left(x2.Name,len(x2.Name)-4)%></a> 
 
            <%End If%> 
 
            <!-- If to deal with .docx files (removes the .docx extensions from the name when displayed on the page)--> 
 
            <%If (fileType=".docx") Then %> 
 
             <a href="./<%Response.Write(department)%>/<%=x.Name%>/<%=x2.Name%>" target="Form"><%=left(x2.Name,len(x2.Name)-5)%></a> 
 
            <%End If%> 
 
           <%End If%> 
 
          </div> 
 
         <%next 
 
         set fo=nothing 
 
         set fs=nothing%> 
 
        <p>&nbsp;</p> 
 
        <p>&nbsp;</p> 
 
          </div> 
 
       <%End If%> 
 

 
     <%next 
 
     set fo=nothing 
 
     set fs=nothing%> 
 
    </div>

+2

「フォーム」を右クリックして「検査」を選択して、CSSの外観を表示できますか? –

+0

こんにちは@Scott、これは感謝して解決されました。私はポストを更新します。 –

+0

うれしいことです。 –

答えて

0

これが原因最初のdivを重ね タグに引き起こされました。これはもともとdivの前とこのdivの間にバッファを提供することを意図していましたが、これは削除され、代わりに埋め込みが追加されました。

関連する問題