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

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

  1. <legend id='fiNyd'><style id='fiNyd'><dir id='fiNyd'><q id='fiNyd'></q></dir></style></legend>

        <bdo id='fiNyd'></bdo><ul id='fiNyd'></ul>

      <small id='fiNyd'></small><noframes id='fiNyd'>

      如何在不允許多選的情況下在 HTML 中創(chuàng)建列表框

      How to create a listbox in HTML without allowing multiple selection?(如何在不允許多選的情況下在 HTML 中創(chuàng)建列表框?)

            <tbody id='ltWNj'></tbody>
          • <bdo id='ltWNj'></bdo><ul id='ltWNj'></ul>
            <tfoot id='ltWNj'></tfoot>

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

              <legend id='ltWNj'><style id='ltWNj'><dir id='ltWNj'><q id='ltWNj'></q></dir></style></legend>

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

              • 本文介紹了如何在不允許多選的情況下在 HTML 中創(chuàng)建列表框?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

                我在 HTML 方面沒有太多經(jīng)驗.我希望創(chuàng)建一個簡單的列表框,但要求之一是禁止多選.列表框的大部分代碼都是這樣的 -

                I don't have much experience in HTML. I am looking to create a simple listbox, but one of the requirements is to DISALLOW multiple selection. Most of the code for listboxes goes like this -

                 <select name="sometext" multiple="multiple">
                    <option>text1</option>
                    <option>text2</option>
                    <option>text3</option>
                    <option>text4</option>
                    <option>text5</option>
                 </select>
                

                但這允許多選.

                這里,有人問了類似的問題,但最佳"答案被否決了.所以我不確定這還能怎么做.請幫忙.

                Here, a similar question was asked, but the "best" answer has been downvoted. So I am not sure how else this could be done. Please help.

                推薦答案

                只要使用size屬性即可:

                Just use the size attribute:

                <select name="sometext" size="5">
                  <option>text1</option>
                  <option>text2</option>
                  <option>text3</option>
                  <option>text4</option>
                  <option>text5</option>
                </select>
                

                為了澄清,添加 size 屬性并沒有刪除多選.

                To clarify, adding the size attribute did not remove the multiple selection.

                單選有效,因為您刪除了 multiple="multiple" 屬性.

                The single selection works because you removed the multiple="multiple" attribute.

                添加 size="5" 屬性仍然是個好主意,這意味著至少要顯示 5 行.查看完整參考這里

                Adding the size="5" attribute is still a good idea, it means that at least 5 lines must be displayed. See the full reference here

                這篇關(guān)于如何在不允許多選的情況下在 HTML 中創(chuàng)建列表框?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                相關(guān)文檔推薦

                JavaScript innerHTML is not working for IE?(JavaScript innerHTML 不適用于 IE?)
                NETWORK_ERROR: XMLHttpRequest Exception 101(NETWORK_ERROR:XMLHttpRequest 異常 101)
                how do I access XHR responseBody (for binary data) from Javascript in IE?(如何在 IE 中從 Javascript 訪問 XHR responseBody(用于二進(jìn)制數(shù)據(jù))?)
                document.write() overwriting the document?(document.write() 覆蓋文檔?)
                AngularJS Error: Cross origin requests are only supported for protocol schemes: http, data, chrome-extension, https(AngularJS 錯誤:跨源請求僅支持協(xié)議方案:http、data、chrome-extension、https) - IT屋-程序員軟件開發(fā)技術(shù)分
                How to get the response of XMLHttpRequest?(如何獲得 XMLHttpRequest 的響應(yīng)?)

                  <small id='abUon'></small><noframes id='abUon'>

                      • <bdo id='abUon'></bdo><ul id='abUon'></ul>
                        <tfoot id='abUon'></tfoot>
                            <tbody id='abUon'></tbody>
                        1. <i id='abUon'><tr id='abUon'><dt id='abUon'><q id='abUon'><span id='abUon'><b id='abUon'><form id='abUon'><ins id='abUon'></ins><ul id='abUon'></ul><sub id='abUon'></sub></form><legend id='abUon'></legend><bdo id='abUon'><pre id='abUon'><center id='abUon'></center></pre></bdo></b><th id='abUon'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='abUon'><tfoot id='abUon'></tfoot><dl id='abUon'><fieldset id='abUon'></fieldset></dl></div>
                        2. <legend id='abUon'><style id='abUon'><dir id='abUon'><q id='abUon'></q></dir></style></legend>
                          主站蜘蛛池模板: 欧美一区二区三区久久精品 | 久久综合av | 欧美在线视频观看 | 97人人超碰 | 国产乱码精品1区2区3区 | 亚洲成人精品一区 | 欧美日韩在线精品 | 国产亚洲精品久久久久动 | 日韩日韩日韩日韩日韩日韩日韩 | 国产精品久久久久久婷婷天堂 | 中文字幕一区二区三区四区五区 | 午夜极品 | 久久久91精品国产一区二区三区 | 国产精品久久久久久久久久 | 国产精品精品视频一区二区三区 | 欧美日韩黄| 欧洲一区在线观看 | 欧美亚洲第一区 | 日本在线视频一区二区 | 国产香蕉视频 | 国产一区二区在线视频 | 成年精品| 免费观看一级视频 | 欧美在线亚洲 | 天天玩天天干天天操 | 亚洲高清一区二区三区 | 午夜网站视频 | 国产乱码久久久久久 | 请别相信他免费喜剧电影在线观看 | 毛片免费视频 | 人人人干 | 日韩在线精品 | 亚洲欧洲色视频 | 欧美精品在线一区 | 日日日操 | 午夜视频精品 | 久久久久国产精品午夜一区 | 成年人黄色免费视频 | 国产aa| 亚洲一区二区三区四区在线观看 | 免费视频一区二区 |