随机“>”出现在HTML表格上方的标志

时间:2015-01-30 22:52:49

标签: html css random character

我不会说我是webdev的新手(以及一般的编码),但我当然不专业。我一直在为我的飞行学校建立一个网站,在我的一个页面上,我遇到了一个问题:一个随机的&#34;&gt;&#34;只要包含<table>标记,就会显示在表格上方。我现在一直在寻找Stack Exchange,Stack Overflow和谷歌大约三个小时,而且我一无所获。这仅发生在一个页面上,并且仅在此表中发生。取出&#34;&#34;它消失了;将其重新添加,然后再次显示。它甚至会出现在Chrome的Inspect Element中(但显然不会出现在源代码中)。我已经多次重写这个页面,我觉得这是最后一个选项。我将附加HTML源代码和CSS,以便你们可以看看......任何帮助都非常感谢!!!

><!doctype html>
<html><!-- InstanceBegin template="/Templates/mainTemplate.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta charset="utf-8">
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Rochester Air Center</title>
    <!-- InstanceEndEditable -->
    <!-- InstanceBeginEditable name="head" -->


<link rel="stylesheet" href="style1.css" type="text/css" />
    <link rel="shortcut icon" href="/photos/favicon.ico" type="image/x-icon" />
<!-- InstanceEndEditable -->
    <link rel="stylesheet" href="style1.css" type="text/css" />
    <link rel="shortcut icon" href="photos/favicon.ico" type="image/x-icon" />
</head>
<body>
    <div id="headerWrapper">
        <div id="banner">
            <img src="photos/banner.png" width="796px" height="44px"></img>
        </div>
        <div id="timeDiv">
                <a href="conditions.html" id="time">Greenwich Mean Time:&nbsp;<iframe src="http://free.timeanddate.com/clock/i4d9h5z3/n136/fn2/fs16/fcfff/tct/pc000/ftb/tt0/th1/tb1" frameborder="0" width="360" height="30" allowTransparency="true"></iframe></a>
        </div>   
    </div>
    <div id="navWrapper">
    <nav class="navbar">
        <ul>
             <li><a href="index.html">Home</a></li>
            <li><a href="parts.html">Parts and Licenses</a>
            <ul>
                <li><a href="part61.html">Part 61</a></li>
                <li><a href="part141.html">Part 141</a></li> 
                <li><a style="cursor : pointer">Licenses</a>
                    <ul>
                        <li><a href="privateLicense.html">Private Pilots License</a></li>
                        <li><a href="ifr.html">Instrument Flight Rating (IFR)</a></li>
                        <li><a href="cpl.html">Commercial Pilots License (CPL)</a></li>
                        <li><a href="cfi.html">Certified Flight Instructor (CFI)</a></li>
                    </ul>
                </li>
            </ul>
            <li><a href="pilotShopAndFacility">Pilot Shop and Facility</a></li>
            <li><!--<a href="fleet.html">Fleet</a>--><a href="fleet-place-holder.html">Fleet</a>
                <ul>
                    <li><!--<a href="150.html">Cessna 150</a>--><a href="plane-place-holder.html">Cessna 150</a></li>        
                    <li><!--<a href="152.html">Cessna 152</a>--><a href="plane-place-holder.html">Cessna 152</a></li>
                    <li><!--<a href="172.html">Cessna 172</a>--><a href="plane-place-holder.html">Cessna 172</a></li>
                    <li><!--<a href="172sp.html">Cessna 172SP</a>--><a href="plane-place-holder.html">Cessna 172SP</a></li>
                    <li><!--<a href="182.html">Cessna 182</a>--><a href="plane-place-holder.html">Cessna 182</a></li>
                    <li><!--<a href="citabria.html">Citabria</a>--><a href="plane-place-holder.html">Citabria</a></li>
                    <li><!--<a href="pa28.html">Piper 28</a>--><a href="plane-place-holder.html">Piper 28</a></li>
                    <li><!--<a href="seneca.html">Piper Seneca</a>--><a href="plane-place-holder.html">Piper Seneca</a></li>
                    <li><a href="photos/redbird.pdf" target="_blank">Flight Simulator - Redbird</a></li>        
                </ul>    
            </li>
            <li><a href="rates.html">Rates</a></li>
            <li><a href="instructors.html">Instructors</a>
                <ul>
                    <li><a href="alecMetildi.html">Alec Metildi</a></li>
                    <li><a href="christopherCaschette.html">Christopher Caschette</a></li>
                    <li><a href="edVorbach.html">Ed Vorbach</a></li>
                    <li><a href="josephSongin.html">Joseph Songin</a></li>
                    <li><a href="shawnFlickner.html">Shawn Flickner</a></li>
                    <li><a href="toddCameron.html">Todd Cameron</a></li>
                    <li><a href="royCzernikoski.html">Roy Czernikoski</a></li>
                    <li><a href="johnDougherty.html">John Dougherty</a></li>
                    <li><a href="danKindred.html">Dan Kindred</a></li>
                    <li><a href="robertMcNamara.html">Robert McNamara</a></li>
                    <li><a href="geraldFrumusa.html">Gerald Frumusa</a></li>
                </ul>
            </li>
            <li><a href="https://login.flightschedulepro.com/login.aspx?Id=45947&Code=45947&noauth=true" id="schedule" target="_blank">Online Schedule</a></li>
            <li><a href="contact.html">Contact</a></li>
        </ul>      
    </nav>
    </div>
    <div id="contentWrapper">
    <div id="content">
                <!-- InstanceBeginEditable name="content" -->
                <table width="90%" cellspacing="1" cellpadding="1" class="rates" align="center">
                    <tbody>
                        <tr style="background-color : yellow; color : black">
                            <td>
                                <h3 class="ratesTable">Model</h3>
                          </td>
                         <td>
                                <h3 class="ratesTable">Callsign</h3>
                        </td>
                        <td>
                                <h3 class="ratesTable">Equipment</h3>
                        </td>
                        <td>
                                <h3 class="ratesTable">Aircraft Price per Hour</h3>
                        </td>
                        <td>
                                <h3 class="ratesTable">Instructor Price per Hour</h3>
                        </td>
                        <td>
                                <h3 class="ratesTable">Total Price per Hour</h3>
                        </td>
                        </tr>
                    <tr style="background-color : white; color : black; font-family : times">
                        <td>
                            Cessna 150
                        </td>
                        <td>
                            N225RA
                        </td>
                        <td>
                            VFR; VOR
                        </td>
                        <td>
                            $90.00
                        </td>
                        <td>
                            $55.00
                        </td>
                        <td>
                            $145.00
                        </td>    
                    </tr>
                    <tr style="background-color : white; color : black; font-family : times">
                        <td>
                            Cessna 152
                        </td>
                        <td>
                            N714WS
                     </td>
                        <td>
                            VFR; VOR
                        </td>
                        <td>
                            $95.00
                        </td>
                        <td>
                            $55.00
                        </td>
                        <td>
                            $150.00
                        </td>
                    </tr>
                    <tr style="background-color : white; color : black; font-family : times">
                        <td>
                            Cessna 172M
                        </td>
                        <td>
                            N1126U
                        </td>
                        <td>
                            IFR; Dual VOR
                        </td>
                        <td>
                            $125.00
                        </td>
                        <td>
                            $55.00
                        </td>
                        <td>
                            $180.00
                        </td>
                    </tr>
                    <tr style="background-color : white; color : black; font-family : times">
                        <td>
                            Cessna 172M
                        </td>
                        <td>
                            N998RA
                        </td>
                        <td>
                            IFR; Dual VOR; Garmin 400 GPS
                        </td>
                        <td>
                            $125.00
                     </td>
                        <td>
                            $55.00
                        </td>
                     <td>
                            $180.00
                        </td>
                    </tr>>
                    <tr style="background-color : white; color : black; font-family : times">
                        <td>
                            Cessna 172M
                        </td>
                        <td>
                            N5270H
                        </td>
                        <td>
                            IFR; Dual VOR
                        </td>
                        <td>
                            $125.00
                        </td>
                        <td>
                            $55.00
                        </td>
                         <td>
                            $180.00
                        </td>
                    </tr>
                    <tr style="background-color : white; color : black; font-family : times">
                        <td>
                            Cessna 172SP
                        </td>
                        <td>
                            N225RA
                        </td>
                        <td>
                            IFR; Dual VOR; GPS; Autopilot
                        </td>
                        <td>
                            $140.00
                        </td>
                        <td>
                            $55.00
                        </td>
                        <td>
                            $195.00
                       </td>
                    </tr>
                    <tr style="background-color : white; color : black; font-family : times">
                        <td>
                            Cessna 182
                        </td>
                        <td>
                            N992RA
                        </td>
                        <td>
                            IFR; Dual VOR; GPS
                        </td>
                        <td>
                            $145.00
                        </td>
                        <td>
                            $55.00
                        </td>
                        <td>
                            $200.00
                        </td>
                  </tr>
                  <tr style="background-color : white; color : black; font-family : times">
                    <td>
                            Citabria
                     </td>
                        <td>
                            N197
                      </td>
                       <td>
                            VFR
                     </td>
                        <td>
                            $130.00
                       </td>
                       <td>
                            $55.00
                       </td>
                        <td>
                            $185.00
                       </td>
                 </tr>
        <tr style="background-color : white; color : black; font-family : times">
            <td>
                Piper 28-200R
            </td>
            <td>
                N827RA
            </td>
            <td>
                IFR; VOR; GPS; Complex (Retractable Gear, Flaps, Constant Speed Propeller)
            </td>
            <td>
                $140.00
            </td>
            <td>
                $55.00
            </td>
            <td>
                $195.00
            </td>
        </tr>
        <tr style="background-color : white; color : black; font-family : times">
            <td>
                Piper Seneca II
            </td>
            <td>
                N78SF
            </td>
            <td>
                IFR; GPS; VOR
            </td>
            <td>
                $275.00
            </td>
            <td>
                $60.00
            </td>
            <td>
                $335.00
            </td>
        </tr>
        <tr style="background-color : white; color : black; font-family : times">
            <td>
                Full Motion Flight Simulator
            </td>
            <td>
                Redbird
            </td>
            <td>
                -
            </td>
            <td>
                $65.00
            </td>
            <td>
                $55.00
            </td>
            <td>
                $120.00
            </td>
        </tr>
        <tr style="background-color : white; color : black; font-family : times">
            <td>
                Ground Instruction
            </td>
            <td>
                -
            </td>
            <td>
                -
            </td>
            <td>
                -
            </td>
            <td>
                $55.00
            </td>
            <td>
                $55.00
            </td>
        </tr>      
    </tbody>
  </table>  
  <br />
  <br />
      </div>
    </div>  
<!-- InstanceEndEditable -->
    </div>
    </div>
    <div id="foot">
        <a href="faq.html" class="footer">Frequently Asked Questions</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
        <a href="map.html" class="footer">Site Map</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
        <a href="aboutUs.html" class="footer">About Us</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
        <a href="contact.html" class="footer">Contact Us</a>
    </div>      
</body>

这是我的(相关)CSS:

  

body {background-color:#000000; background-image:url(&#39; photos / background.jpg&#39;); background-repeat:no-repeat; font-size:13pt;背景附件:固定;颜色:#000000; font-family:arial}

table { font-size : 13pt; color : #000000; font-family : arial; text-align : center }
    table.rates { font-family : times }
    table.holder { background-color : #FFFFFF; color : #000000; text-align : center }
tr { font-size : 13pt; color : #000000; font-family : times; text-align : center }
td { font-size : 13pt; color : #000000; font-family : times; text-align : center }

我为所有压倒一切而道歉,我遇到了一些问题,一旦有效,我就离开了......是的,我正在使用Dreamweaver,是的,我知道它不是很好对于webdev了。无论如何......感谢您的帮助!

3 个答案:

答案 0 :(得分:2)

您的标记中包含以下内容,这会产生额外的&gt;

</tr>>

我立即使用ctrl-f&gt;&gt;找到了它。另一个好主意是使用html验证器来检查这些类型的错误。例如,http://validator.w3.org/。很多代码编辑也会检查有效性,虽然我不确定Dream Weaver是否是其中之一。

答案 1 :(得分:1)

此行末尾有一个额外的>

<tr style="background-color : white; color : black; font-family : times">
  <td>
    Cessna 172M
  </td>
  <td>
    N998RA
  </td>
  <td>
    IFR; Dual VOR; Garmin 400 GPS
  </td>
  <td>
    $125.00
  </td>
  <td>
    $55.00
  </td>
  <td>
    $180.00
  </td>
</tr>><!-- here it is -->

答案 2 :(得分:0)

已修复

使用以下内容(复制和粘贴)替换您的表格内容

<table width="90%" cellspacing="1" cellpadding="1" class="rates" align="center">
                <tbody>
                    <tr style="background-color : yellow; color : black">
                        <td>
                            <h3 class="ratesTable">Model</h3>
                      </td>
                     <td>
                            <h3 class="ratesTable">Callsign</h3>
                    </td>
                    <td>
                            <h3 class="ratesTable">Equipment</h3>
                    </td>
                    <td>
                            <h3 class="ratesTable">Aircraft Price per Hour</h3>
                    </td>
                    <td>
                            <h3 class="ratesTable">Instructor Price per Hour</h3>
                    </td>
                    <td>
                            <h3 class="ratesTable">Total Price per Hour</h3>
                    </td>
                    </tr>
                <tr style="background-color : white; color : black; font-family : times">
                    <td>
                        Cessna 150
                    </td>
                    <td>
                        N225RA
                    </td>
                    <td>
                        VFR; VOR
                    </td>
                    <td>
                        $90.00
                    </td>
                    <td>
                        $55.00
                    </td>
                    <td>
                        $145.00
                    </td>    
                </tr>
                <tr style="background-color : white; color : black; font-family : times">
                    <td>
                        Cessna 152
                    </td>
                    <td>
                        N714WS
                 </td>
                    <td>
                        VFR; VOR
                    </td>
                    <td>
                        $95.00
                    </td>
                    <td>
                        $55.00
                    </td>
                    <td>
                        $150.00
                    </td>
                </tr>
                <tr style="background-color : white; color : black; font-family : times">
                    <td>
                        Cessna 172M
                    </td>
                    <td>
                        N1126U
                    </td>
                    <td>
                        IFR; Dual VOR
                    </td>
                    <td>
                        $125.00
                    </td>
                    <td>
                        $55.00
                    </td>
                    <td>
                        $180.00
                    </td>
                </tr>
                <tr style="background-color : white; color : black; font-family : times">
                    <td>
                        Cessna 172M
                    </td>
                    <td>
                        N998RA
                    </td>
                    <td>
                        IFR; Dual VOR; Garmin 400 GPS
                    </td>
                    <td>
                        $125.00
                 </td>
                    <td>
                        $55.00
                    </td>
                 <td>
                        $180.00
                    </td>
                </tr>
                <tr style="background-color : white; color : black; font-family : times">
                    <td>
                        Cessna 172M
                    </td>
                    <td>
                        N5270H
                    </td>
                    <td>
                        IFR; Dual VOR
                    </td>
                    <td>
                        $125.00
                    </td>
                    <td>
                        $55.00
                    </td>
                     <td>
                        $180.00
                    </td>
                </tr>
                <tr style="background-color : white; color : black; font-family : times">
                    <td>
                        Cessna 172SP
                    </td>
                    <td>
                        N225RA
                    </td>
                    <td>
                        IFR; Dual VOR; GPS; Autopilot
                    </td>
                    <td>
                        $140.00
                    </td>
                    <td>
                        $55.00
                    </td>
                    <td>
                        $195.00
                   </td>
                </tr>
                <tr style="background-color : white; color : black; font-family : times">
                    <td>
                        Cessna 182
                    </td>
                    <td>
                        N992RA
                    </td>
                    <td>
                        IFR; Dual VOR; GPS
                    </td>
                    <td>
                        $145.00
                    </td>
                    <td>
                        $55.00
                    </td>
                    <td>
                        $200.00
                    </td>
              </tr>
              <tr style="background-color : white; color : black; font-family : times">
                <td>
                        Citabria
                 </td>
                    <td>
                        N197
                  </td>
                   <td>
                        VFR
                 </td>
                    <td>
                        $130.00
                   </td>
                   <td>
                        $55.00
                   </td>
                    <td>
                        $185.00
                   </td>
             </tr>
    <tr style="background-color : white; color : black; font-family : times">
        <td>
            Piper 28-200R
        </td>
        <td>
            N827RA
        </td>
        <td>
            IFR; VOR; GPS; Complex (Retractable Gear, Flaps, Constant Speed Propeller)
        </td>
        <td>
            $140.00
        </td>
        <td>
            $55.00
        </td>
        <td>
            $195.00
        </td>
    </tr>
    <tr style="background-color : white; color : black; font-family : times">
        <td>
            Piper Seneca II
        </td>
        <td>
            N78SF
        </td>
        <td>
            IFR; GPS; VOR
        </td>
        <td>
            $275.00
        </td>
        <td>
            $60.00
        </td>
        <td>
            $335.00
        </td>
    </tr>
    <tr style="background-color : white; color : black; font-family : times">
        <td>
            Full Motion Flight Simulator
        </td>
        <td>
            Redbird
        </td>
        <td>
            -
        </td>
        <td>
            $65.00
        </td>
        <td>
            $55.00
        </td>
        <td>
            $120.00
        </td>
    </tr>
    <tr style="background-color : white; color : black; font-family : times">
        <td>
            Ground Instruction
        </td>
        <td>
            -
        </td>
        <td>
            -
        </td>
        <td>
            -
        </td>
        <td>
            $55.00
        </td>
        <td>
            $55.00
        </td>
    </tr>      
</tbody>
</table>