久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <small id='0R5o3'></small><noframes id='0R5o3'>

      <bdo id='0R5o3'></bdo><ul id='0R5o3'></ul>

    <i id='0R5o3'><tr id='0R5o3'><dt id='0R5o3'><q id='0R5o3'><span id='0R5o3'><b id='0R5o3'><form id='0R5o3'><ins id='0R5o3'></ins><ul id='0R5o3'></ul><sub id='0R5o3'></sub></form><legend id='0R5o3'></legend><bdo id='0R5o3'><pre id='0R5o3'><center id='0R5o3'></center></pre></bdo></b><th id='0R5o3'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='0R5o3'><tfoot id='0R5o3'></tfoot><dl id='0R5o3'><fieldset id='0R5o3'></fieldset></dl></div>
        <legend id='0R5o3'><style id='0R5o3'><dir id='0R5o3'><q id='0R5o3'></q></dir></style></legend>

        <tfoot id='0R5o3'></tfoot>

        Tag Helpers - 自關(guān)閉 HTML 標簽是個壞習慣?

        Tag Helpers - Self closing HTML tags is a bad habit?(Tag Helpers - 自關(guān)閉 HTML 標簽是個壞習慣?)
      1. <tfoot id='ZN9is'></tfoot>

        • <bdo id='ZN9is'></bdo><ul id='ZN9is'></ul>

            <legend id='ZN9is'><style id='ZN9is'><dir id='ZN9is'><q id='ZN9is'></q></dir></style></legend>
            <i id='ZN9is'><tr id='ZN9is'><dt id='ZN9is'><q id='ZN9is'><span id='ZN9is'><b id='ZN9is'><form id='ZN9is'><ins id='ZN9is'></ins><ul id='ZN9is'></ul><sub id='ZN9is'></sub></form><legend id='ZN9is'></legend><bdo id='ZN9is'><pre id='ZN9is'><center id='ZN9is'></center></pre></bdo></b><th id='ZN9is'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='ZN9is'><tfoot id='ZN9is'></tfoot><dl id='ZN9is'><fieldset id='ZN9is'></fieldset></dl></div>
              <tbody id='ZN9is'></tbody>

            1. <small id='ZN9is'></small><noframes id='ZN9is'>

                  本文介紹了Tag Helpers - 自關(guān)閉 HTML 標簽是個壞習慣?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習吧!

                  問題描述

                  我將 TagHelpers 合并到我的 MVC vNext 項目中,我意識到當我自行關(guān)閉 HTML 標簽時它們不起作用.

                  I am incorporating TagHelpers in my MVC vNext project, and I realized they don't work when I self close the HTML tags.

                  @addTagHelper "*, Microsoft.AspNet.Mvc.TagHelpers"
                  
                  <label asp-for="FirstName"/> <!-- self closing tag -->
                  
                  <span asp-validation-for="FirstName"/> <!-- self closing tag -->
                  

                  而且,當我放置結(jié)束標簽時,我會看到正在顯示的值.

                  And, insteand when I put the closing tags, I see the values being displayed.

                  <label asp-for="FirstName"></label>
                  
                  <span asp-validation-for="FirstName"></span>
                  

                  生成的 HTML

                  <label for="FirstName">FirstName</label>
                  <span class="field-validation-error" data-valmsg-for="FirstName" data-valmsg-replace="true">
                      <span id="FirstName-error" class="">The FirstName field is required</span>
                  </span>
                  

                  我想知道什么,它有什么不同?而且,自我關(guān)閉配對標簽是一個壞習慣.如果您知道一些關(guān)于此設(shè)計原則的文章,請與我分享,不勝感激.

                  What I want to know, what difference does it make? And, is self closing the paired tags a bad habit. If you know some article which talks about this design principle, please share with me, it would be much appreciated.

                  推薦答案

                  它們不起作用的原因是因為MVC 標簽助手不會改變元素是否自動關(guān)閉"(來自問題中的評論 #4475).

                  The reason they do not work is because the "MVC tag helpers do not change whether an element is self-closing or not" (from comments in issue #4475).

                  這是 ASP.NET 中的一個已知問題,計劃是在具有結(jié)束標記的非空元素的情況下在 VS IDE 中顯示警告(請參閱問題 #398).一位 ASP.NET 開發(fā)人員在問題 #1302 中評論說:

                  It is a known issue in ASP.NET and the plan is to show a warning in VS IDE under the scenario of a non-void element having an end tag (see issue #398). One of ASP.NET developers commented in issue #1302 that:

                  這是當前的設(shè)計,但我們在行為上有一些問題(打開和關(guān)閉)"

                  "this is the current design but we have a few issues (open and closed) on the behaviour"

                  這篇關(guān)于Tag Helpers - 自關(guān)閉 HTML 標簽是個壞習慣?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  html2canvas captures everything except the content of an inner canvas(html2canvas 捕獲除內(nèi)部畫布內(nèi)容之外的所有內(nèi)容)
                  Showing an offline OSM map file. Suggestion: an MB Tiles file with Js.library(顯示離線 OSM 映射文件.建議:一個帶有 Js.library 的 MB Tiles 文件)
                  Clicking a leaflet marker takes you to URL(單擊傳單標記會將您帶到 URL)
                  Assign ID to marker in leaflet(為傳單中的標記分配 ID)
                  Set Leaflet Overlay Off in the Layer Control(在圖層控件中設(shè)置 Leaflet Overlay Off)
                  z-index not working as intended(z-index 未按預(yù)期工作)
                    <tbody id='12Y71'></tbody>
                    • <tfoot id='12Y71'></tfoot>

                      <small id='12Y71'></small><noframes id='12Y71'>

                    • <i id='12Y71'><tr id='12Y71'><dt id='12Y71'><q id='12Y71'><span id='12Y71'><b id='12Y71'><form id='12Y71'><ins id='12Y71'></ins><ul id='12Y71'></ul><sub id='12Y71'></sub></form><legend id='12Y71'></legend><bdo id='12Y71'><pre id='12Y71'><center id='12Y71'></center></pre></bdo></b><th id='12Y71'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='12Y71'><tfoot id='12Y71'></tfoot><dl id='12Y71'><fieldset id='12Y71'></fieldset></dl></div>

                        <legend id='12Y71'><style id='12Y71'><dir id='12Y71'><q id='12Y71'></q></dir></style></legend>
                          • <bdo id='12Y71'></bdo><ul id='12Y71'></ul>
                            主站蜘蛛池模板: 亚洲色图图片 | www.国产精 | 国产精品99久久久久久人 | 91啪亚洲精品 | 日韩在线大片 | 狠狠婷婷综合久久久久久妖精 | 欧美精品二区 | 毛片一区二区三区 | av一级在线观看 | 国产特级毛片aaaaaa | 国产精品18久久久久久白浆动漫 | 黑人巨大精品欧美一区二区免费 | 国产电影一区二区三区爱妃记 | 久久免费观看一级毛片 | 国产成人免费在线观看 | 精品无码久久久久久国产 | 中文字幕av亚洲精品一部二部 | 福利视频网站 | 久久精品视频99 | 日韩精品中文字幕一区二区三区 | 在线国产一区 | 99热.com | 热re99久久精品国产99热 | 亚洲在线中文字幕 | 偷拍自拍网站 | 超碰网址| 精品乱人伦一区二区三区 | www国产成人免费观看视频,深夜成人网 | av在线免费观看网址 | 一本一道久久a久久精品蜜桃 | 亚洲精品视频在线 | av手机免费在线观看 | 亚洲欧美综合 | 激情一区二区三区 | 日韩在线小视频 | 欧美全黄 | 成人在线观看欧美 | 婷婷国产一区二区三区 | 欧美精品区 | 免费观看毛片 | 91久久精品国产91久久 |