结束标记div看到验证器

时间:2016-04-28 09:54:11

标签: html validation

我在我的网站上使用验证器标记“div”时遇到了一些问题: 未闭合的元素div:和

int timeout = 60000;
var task = SomeOperationAsync();
if (await Task.WhenAny(task, Task.Delay(timeout)) == task) {
    // task completed within timeout
} else { 
    // timeout logic
}

你可以帮帮我吗?我觉得我没关闭?我输了哪里?我不明白 :( 谢谢你的帮助!

2 个答案:

答案 0 :(得分:0)

您忘记关闭以下标记:

<div class="content">
    <div class="content">
        <div class="wrapper">
            <div class="component">

所以在</section><!-- end block1 -->

之后添加4个结束标记
             </div>
        </div>
    </div>
</div>

答案 1 :(得分:0)

<div class="content">
  <div class="content">
    <div class="wrapper">
      <div class="component">
        <section class="block1">
          <div class="container">
            <header class="flex-between-center">
              <div class="left">
                <p><span class="icon icon-map"></span>1620 Pebblewood Ln. Ste. 132
                  <br>Naperville, IL 60563
                </p>
                <a class="tel"><span class="icon icon-phone"></span><b>(630)741-4445</b></a>
                <div class="mob-tel">
                  <ul>
                    <li><a href="tel:(630)741-4445">(630) 741-4445</a>
                    </li>
                    <li><a href="tel:(630)741-4445">(630) 741-4445</a>
                    </li>
                    <li><a href="tel:(630)741-4445">(630) 741-4445</a>
                    </li>
                    <li><a href="tel:(630)741-4445">(630) 741-4445</a>
                    </li>
                  </ul>
                </div>
              </div>
              <div class="logo">
                <a href="/">
                                    <img src="<?=CONFIG::TEMPLATE_ROOT?>design/img/logo.jpg" alt="">
                                </a>
              </div>
              <div class="right">
                <form action="/search">
                  <span class="input input--hoshi search-wrapp">
                                    <input class="input__field input__field--hoshi" type="text" id="search" name="keyword" placeholder="Search..."/>
                                    <label class="input__label input__label--hoshi input__label--hoshi-color-2" for="input-5">
        <!--                                <span class="input__label-content input__label-content-hoshi">Search...</span>-->
                  </label>
                  <span class="icon-serch"></span>

                  </span>
                  <input id="search-btn" type="submit" style="display: none;" />
                </form>
                <script type="text/javascript">
                  $('.search-wrapp .icon-serch').click(function() {
                    $('#search-btn').trigger('click');
                  })
                </script>
                <p class="in-cart">
                  <span class="icon"></span>
                  <span class="title">In cart:</span>
                  <a href="/card" id="cart-header">
                    <b class="Bouquet">Bouquet</b><span class="nubmer"> <?=$_SESSION['sum_count']?$_SESSION['sum_count']:0 ?></span>
                    <b class="price-title">Price</b>
                    <span class="price">$<?=$_SESSION['sum_count']?$_SESSION['sum_price']:0 ?></span>
                  </a>
                </p>
              </div>
            </header>
          </div>
          <hr>
          <div class="container">
            <nav>
              <div class="menu-icon">
                <span></span>
                <span></span>
                <span></span>
              </div>
              <ul class="flex-between-center menu">
                <? $menu=$ this->_db->select('catalog ', ' category = "main" AND active = 1 ORDER BY sort'); ?>
                <? foreach ($menu as $item) { if($item[ 'id'] !=2 29){?>
                <li>
                  <a href="/catalog/<?= $item['link'] ?>" class="<?if($url->id == $item['link'])echo " active-menu ";?>">
                    <?=$ item[ 'title_en'] ?>
                  </a>
                </li>
                <? }}?>
              </ul>
            </nav>
          </div>
        </section>
        <!-- end block1 -->
      </div>
    </div>
  </div>
</div>

需要另外4个结束</div>