汽車服務(wù)http://www.4008802088.com/外貿(mào)- 外貿(mào)投訴fake shop怎么辦?DMCA/Phishing/Fraud/Counterfeit Sales/Fake Webshop/cloudflarehttp://www.4008802088.com/post/263.html<p><span style="font-size: 20px;">【六六互聯(lián)】服務(wù)器統(tǒng)統(tǒng)忽略這些投訴</span></p><p><span style="text-wrap: nowrap;">做外貿(mào)經(jīng)常碰到這些郵件投訴:</span></p><p><span style="text-wrap: nowrap;">fake shop/DMCA/Phishing/Fraud/Counterfeit Sales/Fake Webshop/cloudflare</span></p><p><span style="text-wrap: nowrap;">然后服務(wù)器就關(guān)閉了。</span></p><p><span style="text-wrap: nowrap;">聯(lián)系我們,用我們的服務(wù)器,我們幫你統(tǒng)統(tǒng)忽略了。</span></p><p><span style="text-wrap: nowrap;">安心做外貿(mào)。</span></p><p><span style="font-size: 24px; color: #0070C0;">記得是獨(dú)立網(wǎng)站,不是亞馬遜等平臺。!!</span></p><p><img class="ue-image" src="http://www.4008802088.com/zb_users/upload/2023/11/202311051699162580541666.png" style="" title="333.png"/></p><p><img class="ue-image" src="http://www.4008802088.com/zb_users/upload/2023/11/202311051699162580210630.jpg" style="" title="111.jpg"/></p><p><img class="ue-image" src="http://www.4008802088.com/zb_users/upload/2023/11/202311051699162580475155.png" style="" title="444.png"/></p><p><img class="ue-image" src="http://www.4008802088.com/zb_users/upload/2023/11/202311051699162580287867.png" style="" title="222.png"/></p><p><img class="ue-image" src="http://www.4008802088.com/zb_users/upload/2023/11/202311051699162580298632.png" style="" title="555.png"/></p><p><br/></p>Sun, 05 Nov 2023 13:35:00 +0800
- 宇舶在“鐘錶與奇跡”錶展展示品牌“融合的藝術(shù)”制錶理念http://www.4008802088.com/post/262.html<p> 今年HUBLOT宇舶在“鐘錶與奇跡”錶展,現(xiàn)場發(fā)佈的眾多全新時計(jì)作品中,依舊主要是展示品牌“融合的藝術(shù)”制錶理念,加入了大量宇舶拿手的顛覆性創(chuàng)新材質(zhì),與先鋒設(shè)計(jì)美學(xué)做融合,諸如與村上隆合作的全新太陽花錶款,黃色陶瓷BIG BANG,幾枚藍(lán)寶石水晶腕錶作品,都給人留下深刻印象。那如果要讓我挑選今年最喜歡的作品,我會選MP-13,它確實(shí)是做到了好事成雙,通過復(fù)雜功能進(jìn)行疊加,是塊1+1大於2的組合,下面我就來通過實(shí)拍圖,來給錶友們詳細(xì)介紹一下這款MP繫列新作。</p><p><img class="ue-image" src="http://www.4008802088.com/zb_users/upload/2023/06/202306071686135830536349.png" title="1.png" alt="1.png"/></p><p> 腕錶主要亮點(diǎn)共有兩個,陀飛輪跟逆跳顯示。我們先說逆跳。作為復(fù)雜功能,我個人認(rèn)為它,更會常被與傳統(tǒng)制錶經(jīng)典風(fēng)格掛鉤,這種當(dāng)指針到達(dá)刻度盡頭,瞬間返回起點(diǎn)的運(yùn)轉(zhuǎn)顯示模式,代錶了純粹的機(jī)械錶魅力。</p><p> 而宇舶制作逆跳錶是有傳統(tǒng)的,曾經(jīng)的逆跳錶,是品牌與體育領(lǐng)域做連接的代錶性功能,像是跟尤文圖斯俱樂部,所推出的足球計(jì)時腕錶,為了方便精準(zhǔn)清晰辯讀足球上下半場計(jì)時,就採用的是雙逆跳計(jì)時功能。</p><p> 而我們看全新MP-13腕錶的逆跳設(shè)計(jì),與足球計(jì)時很像,雙逆跳佈局,總共擁有兩個弧形刻度進(jìn)行排列,以時分針從左至右的運(yùn)轉(zhuǎn)模式,搭配外層的60分鐘刻度,裏層12小時刻度。當(dāng)分針穩(wěn)定運(yùn)行至分鐘刻度盡頭,分針立即返回起點(diǎn)位,時針則會立即從當(dāng)前小時,跳至下一個小時。它的調(diào)校方式操作也非常簡潔,與正常錶調(diào)節(jié)無異,一個錶冠調(diào)節(jié)即可。</p><p> 錶款另一個亮點(diǎn),就是雙軸陀飛輪。陀飛輪由寶璣發(fā)明,本意是通過一個精巧的籠架,將擒縱機(jī)構(gòu)包圍起來,併將籠架旋轉(zhuǎn),從而抵消地心引力對鐘錶機(jī)件造成的誤差。但現(xiàn)如今這種大復(fù)雜功能,絕大部分錶友們都併不會在乎,陀飛輪到底能不能提高精準(zhǔn)性了,只是單純的欣賞它的動態(tài)美感,欣賞價值遠(yuǎn)大於實(shí)用價值。而傳統(tǒng)陀飛輪,無外乎就兩種,無夾闆遮擋的飛行陀,帶夾闆的寶璣式陀飛輪,但它們都只沿一個軸心做平面轉(zhuǎn)動,所以很長一段時間裏,各個腕錶品牌也在琢磨怎麼制造出不一樣的大復(fù)雜功能。</p><p><img class="ue-image" src="http://www.4008802088.com/zb_users/upload/2023/06/202306071686135839759464.png" title="2.png" alt="2.png"/></p><p> 而宇舶就想到了做雙軸陀飛輪,讓陀飛輪運(yùn)轉(zhuǎn)從二維平面進(jìn)化為到三維立體,將大復(fù)雜功能視覺美感又提升至另一個檔次。宇舶也是少數(shù)能夠獨(dú)立自主制造雙周陀飛輪的品牌,在17年,就於MP-09腕錶機(jī)芯上首次引入雙軸陀飛輪。我們看新錶的雙軸陀飛輪設(shè)計(jì),是標(biāo)準(zhǔn)的三臂式陀飛輪籠架,無上層夾闆遮擋,且?guī)Ь康拇蚰ィ由贤语w輪的雙軸結(jié)構(gòu),讓陀飛輪從正、側(cè)、背面,都可以更好的欣賞它,去做立體運(yùn)轉(zhuǎn)的動感美態(tài)。</p><p> MP繫列,作為宇舶旗下高復(fù)雜錶款代錶,整個繫列錶殼造型都比較特殊,不是圓,也不是方,有辨識度。而我一直覺得MP繫列殼體的設(shè)計(jì)主旨,既是通過錶殼,去凸顯腕錶盤面的主題功能。可以看到錶殼造型,因?yàn)橐o雙軸陀飛輪運(yùn)轉(zhuǎn)流出空間,宇舶為了避免整錶,是一個厚度沿用下來,所以特意將腕錶,設(shè)計(jì)成上平下凹的設(shè)計(jì),讓錶殼線條在陀飛輪這裏直接順下來,有一個弧度輪廓造型。錶友們也知道藍(lán)寶石錶鏡好,是因?yàn)樗捕雀撸虼擞畈耙残枰囟ǚ绞剑ミM(jìn)行加工,讓錶殼中央輪廓,與錶圈跟陀飛輪空間做匹配,這也是MP-13腕錶,包括其他這種設(shè)計(jì)的MP錶款,在打造過程中的又一項(xiàng)挑戰(zhàn)。</p><p>整個鈦金屬殼體尺寸,為44毫米,厚16.7毫米,錶殼在打磨上,正面背面是大量的緞面處理,殼體邊緣處則都做了拋光飾面。</p><p> 這款腕錶的鏤空盤面,對比以往的宇舶鏤空盤,它層次感豐富,是把層巒疊嶂的機(jī)械美感給做出來了。在小時刻度下方還設(shè)有扇形動儲顯示。</p><p> 腕錶錶背,將機(jī)芯設(shè)計(jì)的更通透,給我感覺讓佩戴者摘下腕錶後,從背面來欣賞陀飛輪運(yùn)轉(zhuǎn),似乎也是個不錯的選擇。HUB6200手動上鏈雙軸陀飛輪機(jī)芯,滿鏈可提供4天共96小時的長動儲。</p><p><img class="ue-image" src="http://www.4008802088.com/zb_users/upload/2023/06/202306071686135848831879.png" title="3.png" alt="3.png"/></p><p> 隨錶配有一條純黑橡膠錶帶,錶帶在貼合度,柔軟性上的錶現(xiàn)都無可挑剔。</p><p> 總結(jié):MP-13這款雙軸陀飛輪,疊加雙逆跳顯示的大復(fù)雜功能腕錶,就都給錶友們介紹完了,如果只論復(fù)雜程度,機(jī)芯工藝,我個人認(rèn)為它絕對是此次錶展上,宇舶新作中最值得錶友們關(guān)註的款式,而我之所以喜歡這塊腕錶,是因?yàn)樵?jīng)的逆跳,跟宇舶的足球合作夥伴特殊款,這些仟絲萬縷般的聯(lián)繫,畢竟宇舶也是有不少年,沒再做過逆跳功能了,挺開心能看到品牌重新拾起逆跳。腕錶公價1,160,000元,僅限量發(fā)售50枚,即便這錶門檻很高,但也不影響我們欣賞併了解它,且我依然認(rèn)為,MP-13對於喜愛新銳設(shè)計(jì)的鐘錶收藏家們來說,它就是塊值得關(guān)註的新錶選擇。</p><p>買頂級手錶上<a href="http://www.top-biao.com" target="_self">www.top-biao.com</a>:<a href="http://www.top-biao.com" target="_self">高仿手錶</a> <a href="http://www.top-biao.com" target="_self">複刻手錶</a> <a href="http://www.top-biao.com" target="_self">精仿手錶</a> <a href="http://www.top-biao.com" target="_self">高仿錶</a> <a href="http://www.top-biao.com" target="_self">複刻錶</a> <a href="http://www.top-biao.com" target="_self">精仿錶</a></p>Wed, 07 Jun 2023 19:03:26 +0800
- 全新貝利士月相計(jì)時腕錶的亮點(diǎn)http://www.4008802088.com/post/261.html<p> 計(jì)時+月相,我一直覺得是一個很有意思的組合。計(jì)時功能是活潑運(yùn)動的,月相功能是浪漫感性的,二者合一,一只錶就算完整了。</p><p> 市面上月相計(jì)時腕錶併不少見,但動輒六位數(shù)以上的價格,想必會“勸退”不少錶友。如果大家想買一款價格適中、功能齊全的月相計(jì)時腕錶,我會比較推薦宇聯(lián)貝利士月相計(jì)時腕錶。前不久,宇聯(lián)推出一組全新貝利士月相計(jì)時腕錶,以不同的錶盤和指針顏色作為區(qū)別,共有四個版本。</p><p><img class="ue-image" src="http://www.4008802088.com/zb_users/upload/2023/06/202306071686135442204582.png" title="1.png" alt="1.png"/></p><p> 但凡關(guān)註宇聯(lián)的錶友,相信沒有不知道貝利士繫列的。從黑白熊貓,到紅熊貓、綠熊貓、黃熊貓,可以說推出一塊就賣掉一塊。</p><p> 除了計(jì)時功能,貝利士繫列還有很多其他功能,其中星期日歴和月份顯示是“標(biāo)配”,同時還有月相顯示版本,之前還推出過動力顯示功能版本。</p><p> 除了熱賣、功能豐富外,貝利士繫列還有一個最大的優(yōu)勢是顏值高、耐看。就拿貝利士月相計(jì)時錶來說,不論是殼形,還是盤面佈局,都讓人覺得很舒服,我想這要得益於腕錶的德國DNA,妳看到的每一處設(shè)計(jì)及其之間的比例都經(jīng)過精心的數(shù)據(jù)計(jì)算,距離感拿捏得剛剛好。</p><p> 這次推出的新錶,是貝利士第三代月相計(jì)時腕錶。相比前兩代,最新一代的月相計(jì)時腕錶從外觀到性能都有不少變化,主要包括:</p><p>1/ 腕錶直徑和錶殼厚度都有縮小</p><p>2/ 錶盤配色新增了灰色</p><p>3/ 機(jī)芯升級,動力延長到65小時</p><p> 還有一些細(xì)節(jié)上的調(diào)整,比如:計(jì)時按鈕的造型變成方形,以及24小時指示的刻度也和前兩代做了區(qū)別。總之,貝利士月相計(jì)時做到第三代,造型越來越順暢,細(xì)節(jié)越來越耐看、完全經(jīng)得住推敲。</p><p> 當(dāng)然口說無憑,眼見才為實(shí)。腕錶推出的同時,我們就在第一時間拿到新品。</p><p> 全新貝利士月相計(jì)時腕錶的直徑42毫米(第一、二代的直徑都是44毫米),錶殼厚度也減少了約0.55毫米。尺寸整體縮小不僅讓錶頭看起來更緊湊,“黃金”42毫米腕錶直徑更符合大多數(shù)亞洲人手腕大小。</p><p> 前兩代貝利士月相計(jì)時腕錶有白盤藍(lán)針、白盤玫瑰金針和黑盤玫瑰金針三種配色,到了第三代,除了保留以上這三個版本外,還新增了灰色錶盤版本。</p><p><img class="ue-image" src="http://www.4008802088.com/zb_users/upload/2023/06/202306071686135457543323.png" title="2.png" alt="2.png"/></p><p> 宇聯(lián)有很多計(jì)時腕錶,在我的印象裏,貝利士月相計(jì)時是覆蓋功能最多的錶款之一。錶盤加上三個小錶盤,一共要負(fù)責(zé)10項(xiàng)功能顯示,“擔(dān)子很重”。</p><p> 因?yàn)楣δ芏啵藻l盤上的指針也會比較多。怎麼能快速識別每根指針的功能呢?宇聯(lián)的做法是通過顏色區(qū)分,比如在全新灰色款上,精鋼指針指示正常的時、分、秒(但也有一根指針例外,我們稍後解釋),藍(lán)色指針則大都和計(jì)時功能相關(guān)。</p><p>雖然功能多,但盤面佈局井井有條。看看宇聯(lián)又是如何做的:</p><p> 12點(diǎn)位的小錶盤是30分鐘計(jì)時盤,併且在左右兩邊各開了一個長方形窗口,分別顯示星期和月份。</p><p> 有一點(diǎn)值得註意,這只錶的星期和月份用的都是德文顯示,暗戳戳的突出腕錶的德繫血統(tǒng)。德文星期縮寫(星期一到星期日)為MON,DIE,MIT,DON,F(xiàn)RE,SAM,SON。月份縮寫(一月到十二月)為JAN, FEB, M?R, APR, MAI, JUN, JUL, AUG, SEP, OKT, NOV, DEZ。以上面這只錶為例,星期月份窗口目前顯示的就是星期五(FRE),八月(AUG)。</p><p> 我們在前面說過,星期、日歴和月份是貝利士繫列的標(biāo)配,這只錶自然也不例外,錶圈內(nèi)側(cè)的數(shù)字就是日歴顯示,由錶盤中央的一根精鋼指針指示(這就是前文提到的那根“例外”的指針)。</p><p> 錶盤6點(diǎn)鐘位置的小錶盤為12小時計(jì)時盤和月相顯示,9點(diǎn)鐘位置則是小秒盤(精鋼指針指示)和24小時指示(藍(lán)色指針指示)。</p><p> 大家看錶盤的格局,像不像一位高階職場選手,通過巧妙佈局,讓所有看似復(fù)雜的東西變得很有條理。所以這只錶的定位雖然是運(yùn)動錶,我反倒覺得同樣適合在職場裏佩戴,尤其當(dāng)被工作睏住的時候,看看錶盤的“排兵佈陣”,說不定能給自己帶來靈感。</p><p> 而且我一直認(rèn)為在計(jì)時腕錶上加入月相功能,可以中和手錶的“沖勁兒”,讓整塊錶更嚮裏走,更穩(wěn)貼。</p><p> 此外,時標(biāo)和指針都覆有Super-LumiNova?夜光材料,我們在黑暗環(huán)境下測試了一下,夜光效果顯而易見。</p><p> 第三代貝利士月相計(jì)時錶的計(jì)時按鈕也做了更新,變成方形設(shè)計(jì)(前兩代是圓形按鈕)。</p><p> 翻轉(zhuǎn)到腕錶背面,全新貝利士月相計(jì)時腕錶依然延用UNG-25.S1自動上鏈機(jī)芯,繼UNG-27.S1自動上鏈機(jī)芯完成升級後(主要搭載在貝利士“熊貓家族”),25.S1也經(jīng)過全新升級,使用了矽遊絲,很大程度上保證腕錶免受磁場幹?jǐn)_,從而提升腕錶的走時精準(zhǔn)。同時,動力儲存也從60小時延長到了65小時。</p><p><img class="ue-image" src="http://www.4008802088.com/zb_users/upload/2023/06/202306071686135470247437.png" title="3.png" alt="3.png"/></p><p> 機(jī)芯的零件和裝飾部件首先在宇聯(lián)工廠生產(chǎn)、修飾和組裝。機(jī)芯組裝完成後,會進(jìn)行一次仔細(xì)檢查。等到機(jī)芯裝入錶殼之後,宇聯(lián)還會對每一塊腕錶進(jìn)行單獨(dú)的整錶檢測,例如手錶的防水性能、走時精度、外觀等等,這也就是大家常說的宇聯(lián)“一錶一檢”體繫。手錶只有通過“終極檢測”後,才能離開宇聯(lián)工廠,進(jìn)入市場。</p><p> 錶帶看上去是鱷魚皮材質(zhì),但實(shí)際採用的是小牛皮材質(zhì)。所以整個錶帶既有鱷魚皮特有的花紋凹凸感,又有小牛皮特有的細(xì)膩和彈性。</p><p> 最後,我們來總結(jié)一下全新貝利士月相計(jì)時腕錶的亮點(diǎn):腕錶直徑縮小到42毫米、機(jī)芯升級加入矽遊絲,動力增加到65小時,以及腕錶防水性能100米,這裏多說一句,宇聯(lián)男士腕錶,不論正裝款還是運(yùn)動款,防水性能全部在100米或以上。腕錶售價27,000元。</p><p> 從我接觸宇聯(lián)到現(xiàn)在,一個直觀感受是他們非常在意用戶的真實(shí)感受,看重錶友對腕錶本身的反饋。在這種務(wù)實(shí)態(tài)度下打造出的產(chǎn)品,相信會得到越來越多的肯定和青睞。</p><p>買頂級手錶上<a href="http://www.top-biao.com" target="_self">www.top-biao.com</a>:<a href="http://www.top-biao.com" target="_self">高仿手錶</a> <a href="http://www.top-biao.com" target="_self">複刻手錶</a> <a href="http://www.top-biao.com" target="_self">精仿手錶</a> <a href="http://www.top-biao.com" target="_self">高仿錶</a> <a href="http://www.top-biao.com" target="_self">複刻錶</a> <a href="http://www.top-biao.com" target="_self">精仿錶</a></p>Wed, 07 Jun 2023 18:51:27 +0800
- 兩地時錶款對於“空中飛人”來說,是出差必不可少的裝備http://www.4008802088.com/post/260.html<p> 兩地時錶款對於“空中飛人”來說,是出差必不可少的裝備,一直以來也是深得商務(wù)人士喜愛;而在當(dāng)下這個時代,不可否認(rèn)的是,運(yùn)動休閑錶款也越來越火爆。這篇文章給各位推薦3款兩地時錶款,運(yùn)動休閑的外錶又具備了兩地時功能,價格合理併且還具備品牌辨識度,上乘的質(zhì)量和功能滿足於大眾錶友的需求;一起來欣賞一下吧。</p><p><img class="ue-image" src="http://www.4008802088.com/zb_users/upload/2023/06/202306071686134983507603.png" title="1.png" alt="1.png"/></p><p>波爾工程師 III 繫列GM9100C-S2C-IBER(彩虹氣燈)</p><p>產(chǎn)品型號:GM9100C-S2C-IBER(彩虹氣燈)</p><p>國內(nèi)公價:¥23980</p><p>腕錶直徑:41毫米</p><p>錶殼厚度:13.15毫米</p><p>機(jī)芯類型:自動機(jī)械</p><p>機(jī)芯型號:RRM7337-C</p><p>錶殼材質(zhì):904L精鋼</p><p>防水深度:100米</p><p>錶款詳情:<a href="http://www.top-biao.com" target="_self">www.top-biao.com</a></p><p> 腕錶點(diǎn)評:這幾年淺色繫錶盤相當(dāng)受歡迎,冰藍(lán)色的錶盤不禁讓人眼前一亮,也適合現(xiàn)在這個季節(jié)佩戴,清爽又幹凈。錶殼是由904L精鋼打造而成,41毫米的直徑為佩戴者帶來較高的舒適感;GMT功能是這只錶最大的特色,配合所在地時間,錶盤外圍標(biāo)識著24小時制刻度。兩地時功能不僅能滿足經(jīng)常出差的錶友期望,時標(biāo)和指針上還鑲嵌有彩虹微型氣燈,在昏暗環(huán)境下仍然可以指示出發(fā)地時間。另外,這只錶內(nèi)部搭載的是經(jīng)瑞士官方天文臺認(rèn)證的RRM7337-C自動上鏈機(jī)芯,所以佩戴也相當(dāng)省心。值得一提的是,這款波爾工程師GMT繫列包含多種款式,冰藍(lán)色、灰色以及藍(lán)色三種盤面可以選擇,錶友們可以依據(jù)自己的穿搭和喜好來選擇。</p><p><img class="ue-image" src="http://www.4008802088.com/zb_users/upload/2023/06/202306071686135010533487.png" title="2.png" alt="2.png"/></p><p>名士錶利維拉繫列10659</p><p>產(chǎn)品型號:10659</p><p>國內(nèi)公價:¥23300</p><p>腕錶直徑:42毫米</p><p>錶殼厚度:10.96毫米</p><p>機(jī)芯類型:自動機(jī)械</p><p>機(jī)芯型號:ETA 2893-2</p><p>錶殼材質(zhì):精鋼,拋光/緞面打磨</p><p>防水深度:100米</p><p>錶款詳情:<a href="http://www.top-biao.com" target="_self">www.top-biao.com</a></p><p> 腕錶點(diǎn)評:名士利維拉繫列GMT雙時區(qū)腕錶,42毫米的精鋼錶殼搭配標(biāo)誌性12邊形錶圈,藍(lán)色錶盤上除了時、分、秒以外,顯眼的紅色指針以24小時旋轉(zhuǎn)一圈指示第二時區(qū);名士將棒狀12小時與阿拉伯?dāng)?shù)字24小時交錯運(yùn)用,視覺上錶盤更加簡潔,讀時也更加直觀。為了和第二時區(qū)的紅色指針相呼應(yīng),品牌在6點(diǎn)鐘上方設(shè)置了紅色GMT標(biāo)識,以及錶冠上同樣也有紅圈裝飾,滿滿的細(xì)節(jié)設(shè)計(jì)感。藍(lán)色錶盤搭配了一條同色繫的橡膠錶帶,這只錶內(nèi)部搭載的是瑞士制造的自動上鏈機(jī)芯,提供42小時的動力儲備,防水深度100米。</p><p><img class="ue-image" src="http://www.4008802088.com/zb_users/upload/2023/06/202306071686135020929020.png" title="3.png" alt="3.png"/></p><p>帝舵碧灣繫列M79470-0003</p><p>產(chǎn)品型號:M79470-0003</p><p>國內(nèi)公價:¥28700</p><p>腕錶直徑:39毫米</p><p>機(jī)芯型號:MT5652</p><p>錶殼材質(zhì):磨砂及磨光鋼</p><p>防水深度:200米</p><p>錶款詳情:<a href="http://www.top-biao.com" target="_self">www.top-biao.com</a></p><p> 腕錶點(diǎn)評:這只帝舵碧灣專業(yè)型腕錶雖然不是今年的新款,但是它的實(shí)用性能和性價比在同類錶款中還是相當(dāng)能打的。實(shí)用的雙時區(qū)顯示復(fù)雜功能,腕錶配備了GMT功能,由較長的黃色雪花針和24小時固定刻度外圈共同指示,辨識度非常高。3點(diǎn)鐘方嚮的瞬跳日歴與可獨(dú)立調(diào)時的時針同步,在日常生活中非常實(shí)用;內(nèi)部搭載的是經(jīng)過瑞士官方天文臺認(rèn)證的自動上鏈機(jī)芯,日誤差達(dá)-2/+4秒。MT5652型機(jī)芯上滿鏈可提供長達(dá)約70小時的動力儲存,防水深度200米,即使在外地,也能滿足妳隨時隨地想去海邊玩的想法。</p><p> 總結(jié):以上推薦的三款兩地時腕錶,款式和風(fēng)格各有特色。波爾錶無法拒絕的超高性價比;名士錶極強(qiáng)的色彩讓人無法忽視;帝舵細(xì)節(jié)方面的亮眼設(shè)計(jì)和功能都十分抓眼球;最關(guān)鍵是這幾只錶價格都在2萬元左右,合理的價格,豐富的功能,各位如果經(jīng)常出差,這三款都可以考慮一下。</p><p>買頂級手錶上<a href="http://www.top-biao.com" target="_self">www.top-biao.com</a>:<a href="http://www.top-biao.com" target="_self">高仿手錶</a> <a href="http://www.top-biao.com" target="_self">複刻手錶</a> <a href="http://www.top-biao.com" target="_self">精仿手錶</a> <a href="http://www.top-biao.com" target="_self">高仿錶</a> <a href="http://www.top-biao.com" target="_self">複刻錶</a> <a href="http://www.top-biao.com" target="_self">精仿錶</a></p>Wed, 07 Jun 2023 18:46:00 +0800
- 雅典FREAK Diavolo,是一只陀飛輪卡羅素http://www.4008802088.com/post/259.html<p> 名錶,本質(zhì)上也是“時尚單品”。包括百達(dá)翡麗、勞力士、歐米茄等等,都是依照潮流趨勢,不斷推陳出新。每年大量新錶問世,在新老更疊中,只有極少數(shù)手錶,在經(jīng)過十幾年、幾十年後,依然被人們記住,比如百達(dá)翡麗5959、寶珀1735、萬國戰(zhàn)馬,以及我今天想和各位說的,雅典FREAK Diavolo陀飛輪卡羅素。</p><p><img class="ue-image" src="http://www.4008802088.com/zb_users/upload/2023/06/202306071686134696917810.png" title="3.png" alt="3.png"/></p><p> 雅典FREAK Diavolo是在2010年推出的。那時,我在我哥的介紹下,進(jìn)入到時尚行業(yè)工作,併接觸到了名錶。寶珀1735、萬國戰(zhàn)馬,在當(dāng)時,就是名錶世界中的“神”。因?yàn)樵谑畮啄昵埃l是“以復(fù)雜論英雄”,誰復(fù)雜,誰就是王。10年,雅典FREAK Diavolo這只“大魔王”問世(Diavolo就是惡魔的意思),瞬間橫掃仟軍,問鼎王位。為啥?因?yàn)檠诺銯REAK Diavolo不但復(fù)雜,而且獨(dú)一無二。雖然已經(jīng)停產(chǎn),但毫不誇張的說,即使把雅典FREAK Diavolo放在今天的雅典錶陣容中,依然是最復(fù)雜的錶,甚至沒有之一。</p><p>雅典FREAK Diavolo,有多復(fù)雜?</p><p> 雅典FREAK Diavolo,是一只陀飛輪卡羅素。</p><p> 現(xiàn)在,我們都知道,雅典FREAK原本是一只卡羅素,而在FREAK Diavolo上,又加上了一個陀飛輪。在十幾年前,大部分玩家連卡羅素是啥都還沒有搞清楚,又加上陀飛輪,雅典FREAK Diavolo的出現(xiàn),在當(dāng)時沖擊力之大,可想而知。</p><p> 雅典FREAK Diavolo卡羅素部分:FREAK Diavolo錶盤中央,作為分針使用的“巨大旋轉(zhuǎn)機(jī)構(gòu)”,這就是卡羅素。卡羅素60分鐘轉(zhuǎn)一圈。</p><p> 雅典FREAK Diavolo陀飛輪部分:在FREAK Diavolo卡羅素末端(巨大旋轉(zhuǎn)機(jī)構(gòu)末端),有半圓形刻度的,是一個陀飛輪。陀飛輪60秒轉(zhuǎn)一圈。</p><p> 在雅典FREAK Diavolo一只錶上,有兩個旋轉(zhuǎn)機(jī)構(gòu)。從手錶原理上說。卡羅素是由機(jī)芯三輪帶動的旋轉(zhuǎn)機(jī)構(gòu);陀飛輪是由機(jī)芯四輪(秒輪)帶動的旋轉(zhuǎn)機(jī)構(gòu)。雅典FREAK Diavolo把陀飛輪,安裝在了卡羅素上面。</p><p><img class="ue-image" src="http://www.4008802088.com/zb_users/upload/2023/06/202306071686134726673367.png" title="2.png" alt="2.png"/></p><p> 將陀飛輪和卡羅素,同時放在一只手錶裏,不光只有雅典一家。寶珀也有陀飛輪卡羅素手錶,寶珀將陀飛輪放在盤面上方,把卡羅素放在盤面下方。本質(zhì)上,兩只手錶從功能上,是一樣的。雅典FREAK Diavolo的特點(diǎn)是,完全將陀飛輪和卡羅素融為了一體,集成在一條輪繫中。名錶中兩大復(fù)雜旋轉(zhuǎn)機(jī)構(gòu),疊加併同時運(yùn)行,堪稱“神作”。所以說,雅典FREAK Diavolo在名錶世界中,是獨(dú)一無二的存在。</p><p> 除了陀飛輪卡羅素外,相比早期FREAK,雅典FREAK Diavolo還有一個重要升級。2001年雅典FREAK誕生,在2001年到2010年之間的FREAK,有一個技術(shù)問題一直沒能解決。由於FREAK錶盤上有巨大的卡羅素,為了支撐卡羅素,早期雅典不得不在錶盤中央增加一根支撐軸,穿過手錶中央,頂?shù)藉l鏡中央位置。所以2001年到2010年之間的FREAK,錶鏡中央會有一個凸起金屬蓋,會顯得有些突兀。而在2010年推出的FREAK Diavolo,解決了卡羅素支撐問題,從此鏡面再無金屬蓋,直到今天。</p><p> FREAK Diavolo,白金錶殼,尺寸44.5毫米。和常規(guī)版FREAK一樣,也是通過擰錶圈,直接帶動作為分針的卡羅素,來調(diào)時間;擰手錶底蓋,給手錶上弦(FREAK Diavolo是手動上弦,8天動力)。通過手錶底蓋的開窗,可以看到發(fā)條鬆緊情況,作為動力顯示。在細(xì)節(jié)上,雅典FREAK Diavolo同樣使用了全套矽技術(shù)。從陀飛輪上,就可以看到藍(lán)紫色的矽擒縱、矽遊絲。在2010年,矽材質(zhì)還沒有普及,F(xiàn)REAK Diavolo是非常領(lǐng)先的。</p><p> 雅典FREAK Diavolo,當(dāng)年公價1144000。朋友們2010年的100萬,和現(xiàn)在的100萬,購買力可是天壤之別啊。2010年,北京100多萬是能買下一套房的。10年左右,二級市場2萬塊錢,甚至不到2萬的勞力士遍地跑(當(dāng)時的蠔式恆動、空霸等)。可見FREAK Diavolo的價值和旗艦地位。</p><p> 雅典FREAK Diavolo,2010年推出,2013年FREAK陀飛輪卡羅素進(jìn)行過一次改款(更名為Freak Phantom幻影),之後就停產(chǎn)退出雅典陣容了。這次,能再次見到實(shí)錶,也十分不易了。</p><p><img class="ue-image" src="http://www.4008802088.com/zb_users/upload/2023/06/202306071686134711371882.png" title="1.png" alt="1.png"/></p><p>雅典FREAK Diavolo停產(chǎn),F(xiàn)REAK S接替旗艦位置。</p><p> 現(xiàn)在,F(xiàn)REAK S是雅典FREAK繫列中的旗艦款。雅典將FREAK S的卡羅素,做成了巨大的宇宙飛船造型。FREAK S有左右兩個擺輪,併通過差速器相連。雖然FREAK S沒有了FREAK Diavolo的陀飛輪,但是雙擺輪的設(shè)計(jì),依然復(fù)雜且炫酷。FREAK S的公價是1014400。</p><p> 雅典FREAK陀飛輪卡羅素,雖然已經(jīng)停產(chǎn)多年。但作為雅典一大獨(dú)有款式,相信在之後,會以新的設(shè)計(jì),重回雅典陣容。</p>Wed, 07 Jun 2023 18:37:52 +0800
- 天梭小美人淺藍(lán)色腕錶清新中帶著溫柔,圓潤中透著幹練http://www.4008802088.com/post/258.html<p> 這世上有太多的詩詞歌賦可以用來形容母親的偉大,她們?yōu)槲覀冋陲L(fēng)擋雨,陪伴我們度過了人生中的每一個珍貴時光,但長大後的我們卻時常忘了嚮她們錶達(dá)愛意。妳有多久沒有對母親說過我愛妳了呢?有多久沒有擁抱過她們?或者,有多久沒見到她們了呢?或許,今年的母親節(jié),就是妳錶達(dá)愛意最好的時機(jī),選擇一枚精美的腕錶,無需昂貴,只願它能將我們與母親在一起的美好時光,永久留存!(腕錶型號:T126.010.11.133.00)</p><p><img class="ue-image" src="http://www.4008802088.com/zb_users/upload/2023/06/202306071686134243711988.png" title="1.png" alt="1.png"/></p><p> 小美人繫列腕錶是天梭專為女性打造推出的女士腕錶繫列,它由品牌瑞士力洛克總部的女性設(shè)計(jì)師操刀設(shè)計(jì),從古羅馬建築中汲取靈感,打造出了一繫列溫柔中不失幹練、別致卻又極為百搭的錶款。今年,品牌又為該繫列新增了一只小美人淡藍(lán)款腕錶,顏色清新淡雅,在初夏之際作為禮物送給母親最為合適不過。</p><p> 這款腕錶的錶殼採用精鋼材質(zhì)打造,直徑為26毫米,與小美人繫列其他石英款腕錶一樣,小巧精致,不挑手腕。</p><p> 錶圈圓潤的造型搭配拋光的打磨設(shè)計(jì),讓腕錶看上去溫和又順暢,呈現(xiàn)出一種柔美氣質(zhì)。目光微側(cè),我們可以看到錶殼三點(diǎn)鐘位置處設(shè)有一枚精鋼錶冠,錶冠上鑲嵌有白色陶瓷凸圓寶石,幹凈清爽又不失細(xì)節(jié)。另外,錶冠四周還設(shè)有防滑紋理,便於調(diào)校時間。</p><p> 全新天梭小美人繫列淡藍(lán)款腕錶採用了藍(lán)色的珍珠母貝錶盤,我們可以看到,錶盤在燈光的照射下,呈現(xiàn)出神秘又夢幻的漸變鐳射效果,像深邃的海底深處,夏天佩戴會給人一種冰冰涼涼的感覺。</p><p><img class="ue-image" src="http://www.4008802088.com/zb_users/upload/2023/06/202306071686134257776547.png" title="3.png" alt="3.png"/></p><p> 前面說到了小美人繫列的設(shè)計(jì)靈感來源自古羅馬建築,所以我們可以在小美人繫列腕錶中找到許多相關(guān)元素,比如說小三針設(shè)計(jì)、經(jīng)典的羅馬數(shù)字時標(biāo)以及銀色鍍鎳指針,所有元素相互融合,呈現(xiàn)出該繫列腕錶別致又經(jīng)典的視覺觀感。</p><p> 日期顯示窗口位於盤面6點(diǎn)鐘位置,它巧妙地融於盤面當(dāng)中,既不會影響盤面設(shè)計(jì)的完整性又可以進(jìn)一步提高錶款的實(shí)用性。</p><p> 腕錶搭配一條316L精鋼材質(zhì)錶鏈,多種打磨方式讓它看起來頗具層次感,搭配上小巧的淺藍(lán)色錶盤,夏天佩戴最合適不過了。</p><p> 與小美人繫列其他石英腕錶一樣,在腕錶的底蓋上鐫刻有象徵著“芳香與力量”的天梭家族玫瑰紋飾,展現(xiàn)現(xiàn)代麗人的個性自我。腕錶內(nèi)部採用的是一枚瑞士制造石英機(jī)芯,走時精準(zhǔn),無需擔(dān)心動力問題,對於很多不常佩戴腕錶的女性而言,石英機(jī)芯是非常方便的選擇。</p><p> 總結(jié):每次想要送給母親些什麼時,得到的都是“不用不用”,“我不需要”,“買那個沒用”等回答,但其實(shí)當(dāng)我們真正將詢問變?yōu)閷?shí)際行動時,她們臉上洋溢的笑容才是最真心的回答。這款全新天梭小美人淺藍(lán)色腕錶清新中帶著溫柔,圓潤中透著幹練,就如同永不停歇的細(xì)水般的母愛一樣,在炎熱的夏天為我們帶來一絲清涼。</p>Wed, 07 Jun 2023 18:32:18 +0800
- 安裝Windows 7家庭普通版的計(jì)算機(jī)可以加入家庭網(wǎng)http://www.4008802088.com/post/257.html<p><strong><img class="ue-image" src="http://www.4008802088.com/zb_users/upload/2022/12/202212281672214504487625.png" title="QQ圖片20220509200725.png" alt="QQ圖片20220509200725.png"/></strong></p><p><strong>1.檢查計(jì)算機(jī)網(wǎng)絡(luò)硬件設(shè)備的狀態(tài)</strong></p><p>在“計(jì)算機(jī)管理”窗口的“設(shè)備管理器”中選擇“網(wǎng)絡(luò)適配器”,可以查看當(dāng)前計(jì)算機(jī)中網(wǎng)卡的情況。</p><p><strong>2.為網(wǎng)卡配置正確的網(wǎng)絡(luò)參數(shù)</strong></p><p>為計(jì)算機(jī)設(shè)置IP地址“172.16.83.10”、子網(wǎng)掩碼“255.255.255.0”、網(wǎng)關(guān)“172.16.83.254”、DNS“222.246.129.80”的操作方法如下:</p><p>打開“打開網(wǎng)絡(luò)和共享中心”,在“網(wǎng)絡(luò)和共享中心”窗口中選擇窗口左側(cè)的“更改適配器設(shè)置”選項(xiàng),選擇需要配置網(wǎng)絡(luò)連接,單擊右鍵,在彈出的快捷菜單中選擇“屬性”命令,在“此連接使用下列項(xiàng)目”列表框中選擇“Internet協(xié)議版本4(TCP/IPv4)”選項(xiàng),單擊“屬性”按鈕,在打開的“Internet協(xié)議版本4(TCP/IPv4)屬性”對話框中選擇“使用下面的IP地址”,在“IP地址”中輸入“172.16.83.10”、“子網(wǎng)掩碼”中輸入“255.255.255.0”、“默認(rèn)網(wǎng)關(guān)”中輸入“172.16.83.254”,選中“使用下面的DNS服務(wù)器地址”單選按鈕,在“首選DNS服務(wù)器”中輸入“222.246.129.80”,單擊“確定”按鈕。</p><p><strong>3.在Windows7中創(chuàng)建家庭組</strong></p><p>創(chuàng)建家庭組的計(jì)算機(jī)必須安裝Windows 7家庭高級版、Windows 7專業(yè)版或Windows 7旗艦版。安裝Windows 7家庭普通版的計(jì)算機(jī)可以加入家庭網(wǎng),但是不能作為創(chuàng)建網(wǎng)絡(luò)的主機(jī)使用。</p><p><strong>4.設(shè)置文件夾的共享</strong></p><p>在計(jì)算機(jī)窗口中,右擊要共享的文件夾,在彈出的快捷菜單中選擇“屬性”命令,在彈出的“屬性”對話框中選擇“共享”選項(xiàng)卡,單擊“共享”按鈕,彈出“文件共享”對話框,鍵入名稱處的下拉列表中選擇“everyone”,單擊“添加”按鈕。單擊“共享”按鈕,再單擊“完成”按鈕,完成對共享文件夾的設(shè)定。</p><p><strong>5.使用共享的文件夾</strong></p><p>在“控制面板”窗口中單擊“網(wǎng)絡(luò)和共享中心”組的“查看網(wǎng)絡(luò)計(jì)算機(jī)和設(shè)備”選項(xiàng),打開“網(wǎng)絡(luò)”窗口,窗口中顯示了聯(lián)網(wǎng)的計(jì)算機(jī)名稱,雙擊含有共享驅(qū)動器或文件夾的計(jì)算機(jī),即可顯示共享的驅(qū)動器或文件夾。雙擊該窗口下的某一共享文件夾,就可以看到該共享文件夾下的所有共享信息,這時用戶可以訪問該共享文件夾的所有文件。</p><p><strong>6.設(shè)置打印機(jī)共享</strong></p><p>打印機(jī)是最常用的辦公設(shè)備之一,可以在局域網(wǎng)內(nèi)設(shè)置共享打印機(jī),步驟如下。</p><p>打開“開始”菜單,選擇“設(shè)備和打印機(jī)”命令,打開“設(shè)備和打印機(jī)”窗口,右擊打印機(jī)圖標(biāo),在彈出的快捷菜單中選擇“打印機(jī)屬性”命令,在彈出的打印機(jī)“屬性”對話框中選擇“共享”選項(xiàng)卡,勾選“共享這臺打印機(jī)”復(fù)選框,然后在“共享名”文本框中輸入共享的打印機(jī)名稱,單擊“確定”按鈕完成打印機(jī)的共享設(shè)置。</p><p><br/></p>Wed, 28 Dec 2022 15:59:41 +0800
- meta標(biāo)簽在開發(fā)webapp時起到非常重要的作用http://www.4008802088.com/post/256.html<p>移動端開發(fā)技巧</p><p><img class="ue-image" src="http://www.4008802088.com/zb_users/upload/2022/12/202212281672213304200926.png" title="QQ圖片20220509200630.png" alt="QQ圖片20220509200630.png"/></p><p><strong>meta相關(guān)</strong></p><p>webkit內(nèi)核中有一些私有的meta標(biāo)簽,這些meta標(biāo)簽在開發(fā)webapp時起到非常重要的作用</p><p>HTML5標(biāo)簽的使用</p><p>開發(fā)移動端頁面時,建議前端工程師使用HTML5,HTML5可以實(shí)現(xiàn)一些HTML4中無法實(shí)現(xiàn)的豐富的WEB應(yīng)用程序的體驗(yàn),減少開發(fā)者的工作量</p><p><strong>塊級化a標(biāo)簽</strong></p><p>由產(chǎn)品意識形態(tài)決定,在觸控手機(jī)上,為提升用戶體驗(yàn),盡可能的保證用戶的可點(diǎn)擊區(qū)域較大</p><p>使用彈性盒布局</p><p>有助于前端工程師做到盒子模型靈活控制</p><p><br/></p>Wed, 28 Dec 2022 15:39:39 +0800
- 音視頻中的source元素http://www.4008802088.com/post/255.html<p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 21px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><strong><span style="font-family: 宋體; color: #111111;"><img class="ue-image" src="http://www.4008802088.com/zb_users/upload/2022/11/202211021667360405892244.png" title="QQ圖片20221102102720.png" alt="QQ圖片20221102102720.png"/></span></strong></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 21px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><strong><span style="font-family: 宋體; color: #111111;">音視頻中的source元素</span></strong></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 21px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">雖然html5支持Ogg、MPEG 4和WebM的視頻格式以及Vorbis、MP3和Wav的音頻格式,但各瀏覽器對這些格式卻不完全支持,在HTML5中,運(yùn)用source元素可以為video元素或audio元素提供多個備用文件。運(yùn)用source元素添加音頻的基本格式如下:</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 2em; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"> </p><table cellspacing="0" cellpadding="0"><tbody><tr class="firstRow"><td width="470" valign="top" style="line-height: 22px; padding: 0px 7px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"><audio controls="controls"></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"> <source src="</span><span style="font-family: 宋體; color: #111111;">音頻文件地址" type="媒體文件類型/格式"></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"> <source src="</span><span style="font-family: 宋體; color: #111111;">音頻文件地址" type="媒體文件類型/格式"></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"> ……</span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"></audio></span></p> </td></tr></tbody></table><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 21px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">source</span><span style="font-family: 宋體; color: #111111;">元素一般設(shè)置兩個屬性:src用于指定媒體文件的URL地址,type:指定媒體文件的類型,下面通過案例2-49來演示嵌入音頻的方法。</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 21px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255); text-align: center;"><span style="font-family: 宋體; color: #111111;">例2-49 example49.html</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 2em; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"> </p><table cellspacing="0" cellpadding="0" width="667"><tbody><tr class="firstRow"><td width="652" valign="top" style="line-height: 22px; padding: 0px 7px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"><!DOCTYPE html><br/> <html><br/> <head><br/> <meta charset="utf-8"/><br/> <title>HTML5</span><span style="font-family: 宋體; color: #111111;">視頻播放器</title><br/> </head><br/> <body ><br/> <video id="myVideo" width="630" controls><br/> <!--判斷是否支持其播放器--><br/> <source src="video/myVideo.ogg" type="video/ogg"/><br/> <source src="video/myVideo.webm" type="video/webm"/><br/> <source src="video/myVideo.mp4" type="video/mp4"/><br/> 您的瀏覽器不支持video標(biāo)簽<br/> </video><br/> </body><br/> </html></span></p> </td></tr></tbody></table><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 2em; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><img src="https://p.ananas.chaoxing.com/star3/origin/053aa4e53d2777d25be769bafd36495a.png" width="640" height="430" border="0" hspace="0" vspace="0" title="" checked="0" style="border: none; padding: 0px; max-width: 100%; width: 640px; height: 430px;"/><br/></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 2em; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="color: #111111; font-family: 宋體; text-align: center; text-indent: 21px;"> 圖2-52 HTML5中嵌入視頻</span></p><p><br/></p>Wed, 02 Nov 2022 11:37:33 +0800
- Input元素的其他屬性http://www.4008802088.com/post/254.html<p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;"><img class="ue-image" src="http://www.4008802088.com/zb_users/upload/2022/11/202211021667360227448635.png" title="QQ圖片20221102102759.png" alt="QQ圖片20221102102759.png"/></span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">除了type屬性之外,<input/>標(biāo)記還可以定義很多其他的屬性,以實(shí)現(xiàn)不同的功能。</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">1.autofocus</span><span style="font-family: 宋體; color: #111111;">屬性</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">在HTML5中,autofocus屬性用于指定頁面加載后是否自動獲取焦點(diǎn),將標(biāo)記的屬性值指定為true時,表示頁面加載完畢后會自動獲取該焦點(diǎn)。</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">下面通過案例2-39來演示autofocus屬性的使用,如圖2-40所示。</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255); text-align: center;"><span style="font-family: 宋體; color: #111111;">例2-39 example39.html</span></p><table cellspacing="0" cellpadding="0" width="648"><tbody><tr class="firstRow"><td width="633" valign="top" style="line-height: 22px; padding: 0px 7px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"><!DOCTYPE html><br/> <html><br/> <head><br/> <meta charset="utf-8"><br/> <title>autofocus</span><span style="font-family: 宋體; color: #111111;">屬性的使用</title><br/> </head><br/> <body><br/> <form action="#" method="get"><br/> 請輸入搜索關(guān)鍵詞:<br/> <input type="text" name="user_name" autocomplete="off" autofocus="true"/><br/><br/> <input type="submit" value="提交" /><br/> </form><br/> </body><br/> </html></span></p></td></tr></tbody></table><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 2em; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span class="ans-img-wrap" id="ext-gen1059" style="padding: 0px; border: none; max-width: 100%; text-indent: 0px;"><img src="https://p.ananas.chaoxing.com/star3/origin/1b1026d89f6aa48a0725234157b03b3b.png" width="514" height="201" title="2-40.png" id="ext-gen1060" style="border: none; padding: 0px; max-width: 100%;"/></span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 2em; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="text-indent: 30px; font-size: 12px; font-family: 宋體; color: #111111;"> 圖2-40</span><span style="text-indent: 30px; font-size: 12px;"> </span><span style="text-indent: 30px; font-size: 12px; font-family: 宋體; color: #111111;">autofocus</span><span style="text-indent: 30px; font-size: 12px; font-family: 宋體; color: #111111;">屬性的使用 </span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 2em; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span class="ans-img-wrap" id="ext-gen1061" style="padding: 0px; border: none; max-width: 100%; text-indent: 0px;"><img src="https://p.ananas.chaoxing.com/star3/origin/d936769c4fb1472a667e0fa484bd7322.png" width="590" height="296" title="2-41.png" id="ext-gen1062" style="border: none; padding: 0px; max-width: 100%;"/></span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 30px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-size: 12px; font-family: 宋體; color: #111111;"> 圖2-41 form屬性的使用</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 21px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">從圖2-40可以看出,<input />元素輸入框在頁面加載后自動獲取焦點(diǎn),并且關(guān)閉了自動完成功能。</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">2.form</span><span style="font-family: 宋體; color: #111111;">屬性</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">在HTML5之前,如果用戶要提交一個表單,必須把相關(guān)的控件元素都放在表單內(nèi)部,即<form>和</form>標(biāo)簽之間。在提交表單時,會將頁面中不是表單子元素的控件直接忽略掉。</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">下面通過一個案例2-40來演示form屬性的使用,如圖2-41所示。</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255); text-align: center;"><span style="font-family: 宋體; color: #111111;">例2-40 example40.html</span></p><table cellspacing="0" cellpadding="0" width="634"><tbody><tr class="firstRow"><td width="619" valign="top" style="line-height: 22px; padding: 0px 7px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"><!DOCTYPE html></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"><html></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"><head></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"> <meta charset="utf-8"></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"> <title></span><span style="font-family: 宋體; color: #111111;">form</span><span style="font-family: 宋體; color: #111111;">屬性的使用</title></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"></head></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"><body></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"><form action="#" method="get" id="user_form"></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"> </span><span style="font-family: 宋體; color: #111111;">請輸入您的姓名:<input type="text" name="first_name"/></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"> <input type="submit" value="</span><span style="font-family: 宋體; color: #111111;">提交" /></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"></form></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"> <p></span><span style="font-family: 宋體; color: #111111;">下面的輸入框在form元素外,但因?yàn)橹付薴orm屬性為表單的id,</span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"> </span><span style="font-family: 宋體; color: #111111;">所以該輸入框仍然屬于表單的一部分。</p></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"> </span><span style="font-family: 宋體; color: #111111;">請輸入您的昵稱:</span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"> <input type="text" name="last_name" form="user_form"/><br/></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"></body></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"></html></span></p> </td></tr></tbody></table><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">在例2-40中,分別添加兩個<input/>元素,并且第二個<input />元素不在<form> </form>標(biāo)記中。另外,指定第二個<input/>元素的form屬性值為該表單的id。</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">此時,如果在輸入框中分別輸入姓名和昵稱,則first_name和last_name將分別被賦值為輸入的值。例如,在姓名處輸入“李明”,昵稱處輸入“小明”, 效果如圖2-42所示。</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 2em; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span class="ans-img-wrap" id="ext-gen1063" style="padding: 0px; border: none; max-width: 100%; text-indent: 0px;"><img src="https://p.ananas.chaoxing.com/star3/origin/8c321d0ff98e4e7891ef8bb4ebc9bcd8.png" width="640" height="170" title="2-42.png" id="ext-gen1064" style="border: none; padding: 0px; max-width: 100%;"/></span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255); text-align: center;"><span style="font-family: 宋體; color: #111111;">圖2-42 form屬性的使用</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">3. list</span><span style="font-family: 宋體; color: #111111;">屬性</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">通過datalist元素實(shí)現(xiàn)數(shù)據(jù)列表的下拉效果。而list屬性用于指定輸入框所綁定的datalist元素,其值是某個datalist元素的id。</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">下面通過案例2-41來進(jìn)一步學(xué)習(xí)list屬性的使用,如圖2-43所示。</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255); text-align: center;"><span style="font-family: 宋體; color: #111111;">例2-41example141.html</span></p><table cellspacing="0" cellpadding="0" width="641"><tbody><tr class="firstRow"><td width="626" valign="top" style="line-height: 22px; padding: 0px 7px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"><!DOCTYPE html><br/> <html><br/> <head><br/> <meta charset="utf-8"><br/> <title>list</span><span style="font-family: 宋體; color: #111111;">屬性的使用</title><br/> </head><br/> <body><br/> <form action="#" method="get"><br/> 請輸入網(wǎng)址:<input type="url" list="url_list" name="weburl"/><br/> <datalist id="url_list"><br/> <option label="新浪" value="http://www.sina.com.cn"></option><br/> <option label="搜狐" value="http://www.sohu.com"></option><br/> <option label="網(wǎng)易" value="http://www.126.net/"></option><br/> </datalist><br/> <input type="submit" value="提交"/><br/> </form><br/> </body><br/> </html></span></p> </td></tr></tbody></table><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 2em; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span class="ans-img-wrap" id="ext-gen1065" style="padding: 0px; border: none; max-width: 100%; text-indent: 0px;"><img src="https://p.ananas.chaoxing.com/star3/origin/f14b8efffbb7dc0a173931598a2af35f.png" width="640" height="251" title="2-43.png" id="ext-gen1066" style="border: none; padding: 0px; max-width: 100%;"/></span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255); text-align: center;"><span style="font-family: 宋體; color: #111111;">圖2-43 list屬性的使用</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">4. multiple</span><span style="font-family: 宋體; color: #111111;">屬性</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;"> multiple</span><span style="font-family: 宋體; color: #111111;">屬性指定輸入框可以選擇多個值,該屬性適用于email和file類型的input元素。multiple屬性用于email類型的input元素時,表示可以向文本框中輸入多個E-mail地址,多個地址之間通過逗號隔開;multiple屬性用于file類型的input元素時,表示可以選擇多個文件。下面通過案例2-42來進(jìn)一步演示multiple屬性的使用,如圖2-44所示。</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255); text-align: center;"><span style="font-family: 宋體; color: #111111;">例2-42example42.html</span></p><table cellspacing="0" cellpadding="0"><tbody><tr class="firstRow"><td width="470" valign="top" style="line-height: 22px; padding: 0px 7px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"><!DOCTYPE html><br/> <html><br/> <head><br/> <meta charset="utf-8"><br/> <title>multiple</span><span style="font-family: 宋體; color: #111111;">屬性的使用</title><br/> </head><br/> <body><br/> <form action="#" method="get"><br/> 電子郵箱:<input type="email" name="myemail" multiple="true"/></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">&nbsp;&nbsp;</span><span style="font-family: 宋體; color: #111111;">(如果電子郵箱有多個,請使用逗號分隔)<br/><br/><br/> 上傳照片:<input type="file" name="selfile" multiple="true"/></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"><br/><br/><br/> <input type="submit" value="</span><span style="font-family: 宋體; color: #111111;">提交"/><br/> </form><br/> </body><br/> </html></span></p> </td></tr></tbody></table><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 2em; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span class="ans-img-wrap" id="ext-gen1067" style="padding: 0px; border: none; max-width: 100%; text-indent: 0px;"><img src="https://p.ananas.chaoxing.com/star3/origin/fd4e5e7beaca6ebddf70a5ba93c0da93.png" width="640" height="251" title="2-44.png" id="ext-gen1068" style="border: none; padding: 0px; max-width: 100%;"/></span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255); text-align: center;"><span style="font-family: 宋體; color: #111111;">圖2-44 multiple屬性的使用</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">5. min</span><span style="font-family: 宋體; color: #111111;">、max和step屬性</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">HTML5</span><span style="font-family: 宋體; color: #111111;">中的min、max和step屬性用于為包含數(shù)字或日期的input輸入類型規(guī)定限值,也就是給這些類型的輸入框加一個數(shù)值的約束,適用于date、pickers、number和range標(biāo)簽。具體屬性說明如下:</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">max</span><span style="font-family: 宋體; color: #111111;">:規(guī)定輸入框所允許的最大輸入值。</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">min</span><span style="font-family: 宋體; color: #111111;">:規(guī)定輸入框所允許的最小輸入值。</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">step</span><span style="font-family: 宋體; color: #111111;">:為輸入框規(guī)定合法的數(shù)字間隔,如果不設(shè)置,默認(rèn)值是1。</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">6</span><span style="font-family: 宋體; color: #111111;">.pattern屬性</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">pattern</span><span style="font-family: 宋體; color: #111111;">屬性用于驗(yàn)證input類型輸入框中,用戶輸入的內(nèi)容是否與所定義的正則表達(dá)式相匹配。pattern屬性適用于的類型是:text、search、url、tel、email和password的<input/>標(biāo)記。常用的正則表達(dá)式如下表2-6所示。</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255); text-align: center;"><span style="font-family: 宋體; color: #111111;">表2-6 常用的正則表達(dá)式</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 2em; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"> </p><table cellspacing="0" cellpadding="0" width="588"><tbody><tr style="height: 29px;" class="firstRow"><td width="272" height="29" style="border-color: white windowtext windowtext white; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">正則表達(dá)式</span></p> </td><td width="198" height="29" style="border-top-color: white; border-right-color: white; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">說明</span></p> </td></tr><tr style="height: 14px;"><td width="272" height="14" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: white; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">^[0-9]*$</span></p> </td><td width="198" height="14" style="border-top: none; border-right-color: white; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">數(shù)字</span></p> </td></tr><tr style="height: 14px;"><td width="272" height="14" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: white; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">^\d{n}$</span></p> </td><td width="198" height="14" style="border-top: none; border-right-color: white; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">n</span><span style="font-family: 宋體; color: #111111;">位的數(shù)字</span></p> </td></tr><tr style="height: 14px;"><td width="272" height="14" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: white; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">^\d{n,}$</span></p> </td><td width="198" height="14" style="border-top: none; border-right-color: white; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">至少n位的數(shù)字</span></p> </td></tr><tr style="height: 13px;"><td width="272" height="13" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: white; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">^\d{m,n}$</span></p> </td><td width="198" height="13" style="border-top: none; border-right-color: white; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">m-n</span><span style="font-family: 宋體; color: #111111;">位的數(shù)字</span></p> </td></tr><tr style="height: 14px;"><td width="272" height="14" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: white; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">^(0|[1-9][0-9]*)$</span></p> </td><td width="198" height="14" style="border-top: none; border-right-color: white; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">零和非零開頭的數(shù)字</span></p> </td></tr><tr style="height: 14px;"><td width="272" height="14" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: white; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">^([1-9][0-9]*)+(.[0-9]{1,2})?$</span></p> </td><td width="198" height="14" style="border-top: none; border-right-color: white; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">非零開頭的最多帶兩位小數(shù)的數(shù)字</span></p> </td></tr><tr style="height: 14px;"><td width="272" height="14" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: white; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">^(\-|\+)?\d+(\.\d+)?$</span></p> </td><td width="198" height="14" style="border-top: none; border-right-color: white; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">正數(shù)、負(fù)數(shù)、和小數(shù)</span></p> </td></tr><tr style="height: 14px;"><td width="272" height="14" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: white; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">^\d+$ </span><span style="font-family: 宋體; color: #111111;">或 ^[1-9]\d*|0$</span></p> </td><td width="198" height="14" style="border-top: none; border-right-color: white; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">非負(fù)整數(shù)</span></p> </td></tr><tr style="height: 14px;"><td width="272" height="14" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: white; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">^-[1-9]\d*|0$ </span><span style="font-family: 宋體; color: #111111;">或 ^((-\d+)|(0+))$</span></p> </td><td width="198" height="14" style="border-top: none; border-right-color: white; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">非正整數(shù)</span></p> </td></tr><tr style="height: 14px;"><td width="272" height="14" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: white; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">^[\u4e00-\u9fa5]{0,}$</span></p> </td><td width="198" height="14" style="border-top: none; border-right-color: white; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">漢字</span></p> </td></tr><tr style="height: 14px;"><td width="272" height="14" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: white; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">^[A-Za-z0-9]+$ </span><span style="font-family: 宋體; color: #111111;">或 ^[A-Za-z0-9]{4,40}$</span></p> </td><td width="198" height="14" style="border-top: none; border-right-color: white; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">英文和數(shù)字</span></p> </td></tr><tr style="height: 14px;"><td width="272" height="14" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: white; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">^[A-Za-z]+$</span></p> </td><td width="198" height="14" style="border-top: none; border-right-color: white; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">由26個英文字母組成的字符串</span></p> </td></tr><tr style="height: 14px;"><td width="272" height="14" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: white; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">^[A-Za-z0-9]+$</span></p> </td><td width="198" height="14" style="border-top: none; border-right-color: white; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">由數(shù)字和26個英文字母組成的字符串</span></p> </td></tr><tr style="height: 14px;"><td width="272" height="14" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: white; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">^\w+$ </span><span style="font-family: 宋體; color: #111111;">或 ^\w{3,20}$</span></p> </td><td width="198" height="14" style="border-top: none; border-right-color: white; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">由數(shù)字、26個英文字母或者下劃線組成的字符串</span></p> </td></tr><tr style="height: 14px;"><td width="272" height="14" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: white; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">^[\u4E00-\u9FA5A-Za-z0-9_]+$</span></p> </td><td width="198" height="14" style="border-top: none; border-right-color: white; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">中文、英文、數(shù)字包括下劃線</span></p> </td></tr><tr style="height: 14px;"><td width="272" height="14" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: white; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$</span></p> </td><td width="198" height="14" style="border-top: none; border-right-color: white; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">Email</span><span style="font-family: 宋體; color: #111111;">地址</span></p> </td></tr><tr style="height: 14px;"><td width="272" height="14" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: white; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;">[a-zA-z]+://[^\s]* </span><span style="font-family: 宋體; color: #111111;">或 ^http://([\w-]+\.)+[\w-]+(/[\w-./?%&=]*)?$</span></p> </td><td width="198" height="14" style="border-top: none; border-right-color: white; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">URL</span><span style="font-family: 宋體; color: #111111;">地址</span></p> </td></tr><tr style="height: 14px;"><td width="272" height="14" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: white; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">^\d{15}|\d{18}$</span></p> </td><td width="198" height="14" style="border-top: none; border-right-color: white; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">身份證號(15位、18位數(shù)字)</span></p> </td></tr><tr style="height: 14px;"><td width="272" height="14" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: white; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">^([0-9]){7,18}(x|X)?$ </span><span style="font-family: 宋體; color: #111111;">或 ^\d{8,18}|[0-9x]{8,18}|[0-9X]{8,18}?$</span></p> </td><td width="198" height="14" style="border-top: none; border-right-color: white; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">以數(shù)字、字母x結(jié)尾的短身份證號碼</span></p> </td></tr><tr style="height: 25px;"><td width="272" height="25" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: white; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">^[a-zA-Z][a-zA-Z0-9_]{4,15}$</span></p> </td><td width="198" height="25" style="border-top: none; border-right-color: white; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">帳號是否合法(字母開頭,允許5-16字節(jié),</span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">允許字母數(shù)字下劃線)</span></p> </td></tr><tr style="height: 14px;"><td width="272" height="14" style="border-top: none; border-right-color: windowtext; border-bottom-color: white; border-left-color: white; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">^[a-zA-Z]\w{5,17}$</span></p> </td><td width="198" height="14" style="border-top: none; border-right-color: white; border-bottom-color: white; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">密碼(以字母開頭,長度在6~18之間,</span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">只能包含字母、數(shù)字和下劃線)</span></p> </td></tr></tbody></table><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">了解了pattern屬性以及常用的正則表達(dá)式,下面通過案例2-43來進(jìn)行演示,如圖2-45所示。</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255); text-align: center;"><span style="font-family: 宋體; color: #111111;">例2-43 example43.html</span></p><table cellspacing="0" cellpadding="0" width="667"><tbody><tr class="firstRow"><td width="652" valign="top" style="line-height: 22px; padding: 0px 7px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"><!DOCTYPE html><br/> <html><br/> <head><br/> <meta charset="utf-8"><br/> <title>pattern</span><span style="font-family: 宋體; color: #111111;">屬性</title><br/> </head><br/> <body><br/> <form action="#" method="get"><br/> 賬&nbsp;&nbsp;&nbsp;&nbsp;號:</span></p><p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"> <input type="text" name="username" pattern="^[a-zA-Z][a-zA-Z0-9_]{4,15}$" /></span></p><p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">( 以字母開頭,允許5-16字節(jié),允許字母數(shù)字下劃線)<br/><br/> 密&nbsp;&nbsp;&nbsp;&nbsp;碼:</span></p><p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"> <input type="password" name="pwd" pattern="^[a-zA-Z]\w{5,17}$" /></span></p><p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"> (以字母開頭,長度在6~18之間,只能包含字母、數(shù)字和下劃線)<br/><br/> Email地址:</span></p><p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"> <input type="email" name="myemail" pattern="^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$"/><br/> <input type="submit" value="提交"/><br/> </form><br/> </body><br/> </html></span></p> </td></tr></tbody></table><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 2em; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span class="ans-img-wrap" id="ext-gen1069" style="padding: 0px; border: none; max-width: 100%; text-indent: 0px;"><img src="https://p.ananas.chaoxing.com/star3/origin/546fdc6818d36f9ff563ece3f928641a.png" width="640" height="275" title="2-45.png" id="ext-gen1070" style="border: none; padding: 0px; max-width: 100%;"/></span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255); text-align: center;"><span style="font-family: 宋體; color: #111111;">圖2-45</span> <span style="font-family: 宋體; color: #111111;">pattern</span><span style="font-family: 宋體; color: #111111;">屬性的使用</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">7</span><span style="font-family: 宋體; color: #111111;">.placeholder屬性</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">placeholder</span><span style="font-family: 宋體; color: #111111;">屬性用于為input類型的輸入框提供相關(guān)提示信息,以描述輸入框期待用戶輸入何種內(nèi)容。在輸入框?yàn)榭諘r顯式出現(xiàn),而當(dāng)輸入框獲得焦點(diǎn)時則會消失。示例代碼如下:</span></p><table cellspacing="0" cellpadding="0"><tbody><tr class="firstRow"><td width="470" valign="top" style="line-height: 22px; padding: 0px 7px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all;"><br/><p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">請輸入郵政編碼:<input type="text" name="code" pattern="[0-9]{6}" placeholder="請輸入6位數(shù)的郵政編碼" /></span></p> </td></tr></tbody></table><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">8. required</span><span style="font-family: 宋體; color: #111111;">屬性</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">HTML5</span><span style="font-family: 宋體; color: #111111;">中的輸入類型,不會自動判斷用戶是否在輸入框中輸入了內(nèi)容,如果開發(fā)者要求輸入框中的內(nèi)容是必須填寫的,那么需要為input元素指定required屬性。required屬性用于規(guī)定輸入框填寫的內(nèi)容不能為空,否則不允許用戶提交表單。示例代碼如下:</span></p><table cellspacing="0" cellpadding="0"><tbody><tr style="height: 28px;" class="firstRow"><td width="470" valign="top" height="28" style="line-height: 22px; padding: 0px 7px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"><input type="text" name="user_name" required="required"/></span></p> </td></tr></tbody></table><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 2em; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><strong><span style="font-family: 宋體; color: #111111;">2.7.5</span></strong><strong><span style="font-family: 宋體; color: #111111;">其他表單元素</span></strong></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 28px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">1.</span><span style="font-family: 宋體; color: #111111;">textarea</span><span style="font-family: 宋體; color: #111111;">元素</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 2em; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;"> </span><span style="font-family: 宋體; color: #111111;">當(dāng)定義input控件的type屬性值為text時,可以創(chuàng)建一個單行文本輸入框。但是,如果需要輸入大量的信息,單行文本輸入框就不再適用,為此HTML語言提供了<textarea></textarea>標(biāo)記。通過textarea控件可以輕松地創(chuàng)建多行文本輸入框,其基本語法格式如下:</span></p><table cellspacing="0" cellpadding="0"><tbody><tr style="height: 28px;" class="firstRow"><td width="470" valign="top" height="28" style="line-height: 22px; padding: 0px 7px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"><textarea cols="</span><span style="font-family: 宋體; color: #111111;">每行中的字符數(shù)" rows="顯示的行數(shù)"></span></p><p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"> </span><span style="font-family: 宋體; color: #111111;">文本內(nèi)容</span></p><p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"></textarea></span></p> </td></tr></tbody></table><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 21px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;"><textarea></span><span style="font-family: 宋體; color: #111111;">元素除了cols和rows屬性外,還擁有幾個可選屬性,分別為disabled、name和readonly,詳見下表2-7所示。</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 21px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255); text-align: center;"><span style="font-family: 宋體; color: #111111;">表2-7<textarea>元素屬性</span> </p><table cellspacing="0" cellpadding="0" width="461"><tbody><tr style="height: 24px;" class="firstRow"><td width="83" height="24" style="border-color: white windowtext windowtext white; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">屬性</span></p> </td><td width="104" height="24" style="border-top-color: white; border-right-color: windowtext; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">屬性值</span></p> </td><td width="274" height="24" style="border-top-color: white; border-right-color: white; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">描述</span></p> </td></tr><tr style="height: 26px;"><td width="83" height="26" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: white; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">name</span></p> </td><td width="104" height="26" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">由用戶自定義</span></p> </td><td width="274" valign="top" height="26" style="border-top: none; border-right-color: white; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">控件的名稱</span></p> </td></tr><tr style="height: 26px;"><td width="83" height="26" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: white; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">readonly</span></p> </td><td width="104" height="26" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">readonly</span></p> </td><td width="274" valign="top" height="26" style="border-top: none; border-right-color: white; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">該控件內(nèi)容為只讀(不能編輯修改)</span></p> </td></tr><tr style="height: 26px;"><td width="83" height="26" style="border-top: none; border-right-color: windowtext; border-bottom-color: white; border-left-color: white; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">disabled</span></p> </td><td width="104" height="26" style="border-top: none; border-right-color: windowtext; border-bottom-color: white; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">disabled</span></p> </td><td width="274" valign="top" height="26" style="border-top: none; border-right-color: white; border-bottom-color: white; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">第一次加載頁面時禁用該控件(顯示為灰色)</span></p> </td></tr></tbody></table><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 21px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">下面通過案例2-44來演示<textarea>元素的使用,如圖2-46所示。</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 21px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255); text-align: center;"><span style="font-family: 宋體; color: #111111;">例2-44 example2-44.html</span></p><table cellspacing="0" cellpadding="0" width="634"><tbody><tr class="firstRow"><td width="619" valign="top" style="line-height: 22px; padding: 0px 7px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"><!DOCTYPE html><br/> <html><br/> <head><br/> <meta charset="utf-8"><br/> <title>textarea</span><span style="font-family: 宋體; color: #111111;">控件</title><br/> </head><br/> <body><br/> <form action="#" method="post"><br/> 評論:<br /><br/> <textarea cols="60" rows="8"><br/> 評論的時候,請遵紀(jì)守法并注意語言文明,多給文檔分享人一些支持。<br/> </textarea><br /><br/> <input type="submit" value="提交"/><br/> </form><br/> </body><br/> </html></span></p> </td></tr></tbody></table><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 2em; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span class="ans-img-wrap" id="ext-gen1071" style="padding: 0px; border: none; max-width: 100%; text-indent: 0px;"><img src="https://p.ananas.chaoxing.com/star3/origin/4b0ff47c6ca3eab8b6b8cfec6568d0a9.png" width="557" height="348" title="2-46.png" id="ext-gen1072" style="border: none; padding: 0px; max-width: 100%;"/></span><span style="color: #111111; font-family: 宋體;"> </span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 2em; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;"><span style="font-size: 12px; text-align: center;">圖2-46 textarea控件使用</span></span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 2em; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;"></span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 2em; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255); text-align: center;"><span class="ans-img-wrap" id="ext-gen1073" style="padding: 0px; border: none; max-width: 100%; text-indent: 0px;"><img src="https://p.ananas.chaoxing.com/star3/origin/4e1ff4cc59c4154a6d834271c8830e06.jpg" width="132" height="160" title="2-47a.jpg" id="ext-gen1074" style="border: none; padding: 0px; max-width: 100%;"/></span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 2em; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;"></span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 2em; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255); text-align: center;"><span class="ans-img-wrap" id="ext-gen1075" style="padding: 0px; border: none; max-width: 100%; text-indent: 0px;"><img src="https://p.ananas.chaoxing.com/star3/origin/2c774a1d03ad5fc365e7d6f765fea2a4.jpg" width="132" height="160" title="2-47b.jpg" id="ext-gen1076" style="border: none; padding: 0px; max-width: 100%;"/></span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255); text-align: center;"><span style="font-size: 12px; font-family: 宋體; color: #111111;"> 圖2-47 select控件效果</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 2em; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">1.</span><span style="font-family: 宋體; color: #111111;">select</span><span style="font-family: 宋體; color: #111111;">控件</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 21px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">瀏覽網(wǎng)頁時,經(jīng)常會看到包含多個選項(xiàng)的下拉菜單,例如選擇所在的城市、出生年月、興趣愛好等。如圖2-47左所示即為一個下拉菜單,當(dāng)點(diǎn)擊下拉三角時,會出現(xiàn)一個選擇列表,如圖2-47右所示。</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">使用select控件定義下拉菜單的基本語法格式如下:</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 2em; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><br/></p><table cellspacing="0" cellpadding="0" width="587"><tbody><tr class="firstRow"><td width="470" valign="top" style="line-height: 22px; padding: 0px 7px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"><select></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"> <option></span><span style="font-family: 宋體; color: #111111;">選項(xiàng)1</option></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"> <option></span><span style="font-family: 宋體; color: #111111;">選項(xiàng)2</option></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"> <option></span><span style="font-family: 宋體; color: #111111;">選項(xiàng)3</option></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"> ...</span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"> </select></span></p> </td></tr></tbody></table><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 35px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">在上面的語法中,<select></select>標(biāo)記用于在表單中添加一個下拉菜單,<option></option>標(biāo)記嵌套在<select></select>標(biāo)記中,用于定義下拉菜單中的具體選項(xiàng),每對<select></select>中至少應(yīng)包含一對<option></option>。在HTML中,可以為<select>和<option>標(biāo)記定義屬性,以改變下拉菜單的外觀顯示效果,具體如下表2-8所示。</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255); text-align: center;"><span style="font-family: 宋體; color: #111111;">表2-8 下拉菜單屬性</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 2em; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"> </p><table cellspacing="0" cellpadding="0" width="479"><tbody><tr style="height: 36px;" class="firstRow"><td width="73" height="36" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 6px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both; text-align: center;"><span style="font-family: 宋體; color: #111111;">標(biāo)記名</span></p> </td><td width="50" height="36" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 6px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both; text-align: center;"><span style="font-family: 宋體; color: #111111;">常用屬性</span></p> </td><td width="330" height="36" style="border-top: none; border-right: none; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 6px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px; text-align: center;"><span style="font-family: 宋體; color: #111111;">描述</span></p> </td></tr><tr style="height: 23px;"><td width="73" rowspan="2" height="23" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 6px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"><select></span></p> </td><td width="50" height="23" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 6px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">size</span></p> </td><td width="330" valign="top" height="23" style="border-top: none; border-right: none; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 6px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">指定下拉菜單的可見選項(xiàng)數(shù)(取值為正整數(shù))。</span></p> </td></tr><tr style="height: 43px;"><td width="50" height="43" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 6px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">multiple</span></p> </td><td width="330" valign="top" height="43" style="border-top: none; border-right: none; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 6px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">定義multiple="multiple"時,下拉菜單將具有多項(xiàng)選擇的功能,方法為按住Ctrl鍵的同時選擇多項(xiàng)。</span></p> </td></tr><tr style="height: 45px;"><td width="73" height="45" style="border-top: none; border-right-color: windowtext; border-bottom: none; border-left: none; line-height: 22px; padding: 1px 6px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"><option></span></p> </td><td width="50" height="45" style="border-top: none; border-right-color: windowtext; border-bottom: none; border-left: none; line-height: 22px; padding: 1px 6px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">selected</span></p> </td><td width="330" valign="top" height="45" style="border-width: initial; border-style: none; border-color: initial; line-height: 22px; padding: 1px 6px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">定義selected =" selected "時,當(dāng)前項(xiàng)即為默認(rèn)選中項(xiàng)。</span></p> </td></tr></tbody></table><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">下面通過案例2-45來演示幾種不同的下拉菜單效果,如圖2-48所示。</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255); text-align: center;"><span style="font-family: 宋體; color: #111111;">例2-45 example45.html</span></p><table cellspacing="0" cellpadding="0" width="634"><tbody><tr class="firstRow"><td width="619" valign="top" style="line-height: 22px; padding: 0px 7px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all;"> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"><!DOCTYPE html></span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"><html></span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"><head></span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"> <meta charset="utf-8"></span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"> <title>select</span><span style="font-family: 宋體; color: #111111;">控件</title></span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"></head></span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"><body></span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"><form action="#" method="post"></span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"> </span><span style="font-family: 宋體; color: #111111;">所在校區(qū):</span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"> <select> <!--</span><span style="font-family: 宋體; color: #111111;">最基本的下拉菜單--></span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"> <option>-</span><span style="font-family: 宋體; color: #111111;">請選擇-</option></span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"> <option></span><span style="font-family: 宋體; color: #111111;">北京</option></span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"> <option></span><span style="font-family: 宋體; color: #111111;">上海</option></span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"> <option></span><span style="font-family: 宋體; color: #111111;">廣州</option></span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"> <option></span><span style="font-family: 宋體; color: #111111;">武漢</option></span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"> <option></span><span style="font-family: 宋體; color: #111111;">成都</option></span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"> </select></span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"> &nbsp;&nbsp;</span><span style="font-family: 宋體; color: #111111;">特長(單選):</span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"> <select></span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"> <option></span><span style="font-family: 宋體; color: #111111;">唱歌</option></span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"> <option selected="selected"></span><span style="font-family: 宋體; color: #111111;">畫畫</option> </span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 192px;"><span style="font-family: 宋體; color: #111111;"><!--</span><span style="font-family: 宋體; color: #111111;">設(shè)置默認(rèn)選中項(xiàng)--></span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"> <option></span><span style="font-family: 宋體; color: #111111;">跳舞</option></span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"> </select></span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"> &nbsp;&nbsp;</span><span style="font-family: 宋體; color: #111111;">愛好(多選):</span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"> <select multiple="multiple" size="4"> </span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 144px;"><span style="font-family: 宋體; color: #111111;"> <!--</span><span style="font-family: 宋體; color: #111111;">設(shè)置多選和可見選項(xiàng)數(shù)--></span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"> <option></span><span style="font-family: 宋體; color: #111111;">讀書</option></span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"> <option selected="selected"></span><span style="font-family: 宋體; color: #111111;">寫代碼</option></span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 210px;"><span style="font-family: 宋體; color: #111111;"><!--</span><span style="font-family: 宋體; color: #111111;">設(shè)置默認(rèn)選中項(xiàng)--></span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"> <option></span><span style="font-family: 宋體; color: #111111;">旅行</option></span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"> <option selected="selected"></span><span style="font-family: 宋體; color: #111111;">聽音樂</option></span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 210px;"><span style="font-family: 宋體; color: #111111;"><!--</span><span style="font-family: 宋體; color: #111111;">設(shè)置默認(rèn)選中項(xiàng)--></span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"> <option></span><span style="font-family: 宋體; color: #111111;">踢球</option></span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"> </select><br /><br /></span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"> <input type="submit" value="</span><span style="font-family: 宋體; color: #111111;">提交"/></span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"></form></span></p> <p style="overflow-wrap: break-word; clear: both; text-indent: 24px;"><span style="font-family: 宋體; color: #111111;"></body></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"></html></span></p> </td></tr></tbody></table><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 2em; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255); text-align: center;"><span class="ans-img-wrap" id="ext-gen1077" style="padding: 0px; border: none; max-width: 100%; text-indent: 0px;"><img src="https://p.ananas.chaoxing.com/star3/origin/65151a450707b0c423cf3f809d1892db.png" width="640" height="303" title="2-48.png" id="ext-gen1078" style="border: none; padding: 0px; max-width: 100%;"/></span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255); text-align: center;"><span style="font-family: 宋體; color: #111111;">圖2-48 select控件效果</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 2em; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">3.</span><span style="font-family: 宋體; color: #111111;">datalist</span><span style="font-family: 宋體; color: #111111;">元素</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 35px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">datalist</span><span style="font-family: 宋體; color: #111111;">元素用于定義輸入框的選項(xiàng)列表,列表通過datalist內(nèi)的option元素進(jìn)行創(chuàng)建。如果用戶不希望從列表中選擇某項(xiàng),也可以自行輸入其他內(nèi)容。datalist元素通常與input元素配合使用,來定義input的取值。在使用<datalist>標(biāo)記時,需要通過id屬性為其指定一個唯一的標(biāo)識,然后為input元素指定list屬性,將該屬性值設(shè)置為option元素對應(yīng)的id屬性值即可。下面通過案例2-46來演示datalist元素的使用,如圖2-49所示。</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 35px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255); text-align: center;"><span style="font-family: 宋體; color: #111111;">例2-46 example46.html</span></p><table cellspacing="0" cellpadding="0"><tbody><tr class="firstRow"><td width="470" valign="top" style="line-height: 22px; padding: 0px 7px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"><!DOCTYPE html></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"><html></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"><head></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"> <meta charset="utf-8"></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"> <title>datalist</span><span style="font-family: 宋體; color: #111111;">元素</title></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"></head></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"><body></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"><form action="#" method="post"></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"> </span><span style="font-family: 宋體; color: #111111;">請輸入用戶名:<input type="text" list="namelist"/></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"> <datalist id="namelist"></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"> <option>admin</option></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"> <option>lucy</option></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"> <option>lily</option></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"> </datalist></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"> <input type="submit" value="</span><span style="font-family: 宋體; color: #111111;">提交" /></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"></form></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"></body></span></p> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;"></html></span></p> </td></tr></tbody></table><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 2em; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255); text-align: center;"><span class="ans-img-wrap" id="ext-gen1079" style="padding: 0px; border: none; max-width: 100%; text-indent: 0px;"><img src="https://p.ananas.chaoxing.com/star3/origin/6cea9ca78545ad537c6084311c7ed509.png" width="640" height="257" title="2-49.png" id="ext-gen1080" style="border: none; padding: 0px; max-width: 100%;"/></span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 2em; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255); text-align: center;"><span style="font-family: 宋體; color: #111111;">圖2-49 datalist元素</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 2em; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">4.</span><span style="font-family: 宋體; color: #111111;">keygen</span><span style="font-family: 宋體; color: #111111;">元素</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 21px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">keygen</span><span style="font-family: 宋體; color: #111111;">元素用于表單的密鑰生成器,能夠使用戶驗(yàn)證更為安全、可靠。當(dāng)提交表單時會生成兩個鍵:一個是私鑰,它存儲在客戶端;一個是公鑰,它被發(fā)送到服務(wù)器,驗(yàn)證用戶的客戶端證書。如果新的瀏覽器能夠?qū)eygen元素的支持度再增強(qiáng)一些,則有望使其成為一種有用的安全標(biāo)準(zhǔn)。keygen元素?fù)碛卸鄠€屬性,常用屬性及說明如下表2-9所示。</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 21px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255); text-align: center;"><span style="font-family: 宋體; color: #111111;">表2-9</span><span style="font-family: 宋體; color: #111111;">keygen</span><span style="font-family: 宋體; color: #111111;">元素屬性</span> </p><table cellspacing="0" cellpadding="0" width="461"><tbody><tr style="height: 23px;" class="firstRow"><td width="102" height="23" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both; text-indent: 18px;"><span style="font-family: 宋體; color: #111111;">屬性</span></p> </td><td width="359" height="23" style="border-top: none; border-right: none; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both; text-indent: 18px;"><span style="font-family: 宋體; color: #111111;">說明</span></p> </td></tr><tr style="height: 23px;"><td width="102" height="23" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">autofocus</span></p> </td><td width="359" height="23" style="border-top: none; border-right: none; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">使keygen字段在頁面加載時獲得焦點(diǎn)。</span></p> </td></tr><tr style="height: 23px;"><td width="102" height="23" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">challenge</span></p> </td><td width="359" height="23" style="border-top: none; border-right: none; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">如果使用,則將keygen的值設(shè)置為在提交時詢問。</span></p> </td></tr><tr style="height: 23px;"><td width="102" height="23" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">disabled</span></p> </td><td width="359" height="23" style="border-top: none; border-right: none; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">禁用 keytag 字段。</span></p> </td></tr><tr style="height: 23px;"><td width="102" height="23" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">form</span></p> </td><td width="359" height="23" style="border-top: none; border-right: none; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">定義該 keygen 字段所屬的一個或多個表單。</span></p> </td></tr><tr style="height: 23px;"><td width="102" height="23" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">keytype</span></p> </td><td width="359" height="23" style="border-top: none; border-right: none; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">定義 keytype。rsa 生成 RSA 密鑰。</span></p> </td></tr><tr style="height: 23px;"><td width="102" height="23" style="border-top: none; border-right-color: windowtext; border-bottom: none; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">name</span></p> </td><td width="359" height="23" style="border-width: initial; border-style: none; border-color: initial; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">定義 keygen 元素的唯一名稱。name 屬性用于在提交表單時搜集字段的值。</span></p> </td></tr></tbody></table><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 21px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">keygen</span><span style="font-family: 宋體; color: #111111;">元素示例代碼如下:</span></p><table cellspacing="0" cellpadding="0"><tbody><tr class="firstRow"><td width="470" valign="top" style="line-height: 22px; padding: 0px 7px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both;"><span style="font-family: 宋體; color: #111111;">請選擇加密強(qiáng)度:<keygen name="security"/></span></p> </td></tr></tbody></table><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 2em; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">5</span><span style="font-family: 宋體; color: #111111;">.output元素</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 21px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: 宋體; color: #111111;">output</span><span style="font-family: 宋體; color: #111111;">元素用于不同類型的輸出,可以在瀏覽器中顯示計(jì)算結(jié)果或腳本輸出。其常用屬性有3個,具體如下表2-10所示。</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 21px; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255); text-align: center;"><span style="font-family: 宋體; color: #111111;">表2-10 </span>output<span style="font-family: 宋體;">元素</span><span style="font-family: 宋體; color: #111111;">屬性</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 2em; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"> </p><table cellspacing="0" cellpadding="0" width="451"><tbody><tr style="height: 23px;" class="firstRow"><td width="73" height="23" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both; text-indent: 18px;"><span style="font-family: 宋體; color: #111111;">屬性</span></p> </td><td width="250" height="23" style="border-top: none; border-right: none; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both; text-indent: 18px;"><span style="font-family: 宋體; color: #111111;">說明</span></p> </td></tr><tr style="height: 23px;"><td width="73" height="23" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both; text-indent: 18px;"><span style="font-family: 宋體; color: #111111;">for</span></p> </td><td width="250" height="23" style="border-top: none; border-right: none; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both; text-indent: 18px;"><span style="font-family: 宋體; color: #111111;">定義輸出域相關(guān)的一個或多個元素。</span></p> </td></tr><tr style="height: 23px;"><td width="73" height="23" style="border-top: none; border-right-color: windowtext; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both; text-indent: 18px;"><span style="font-family: 宋體; color: #111111;">form</span></p> </td><td width="250" height="23" style="border-top: none; border-right: none; border-bottom-color: windowtext; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both; text-indent: 18px;"><span style="font-family: 宋體; color: #111111;">定義輸入字段所屬的一個或多個表單。</span></p> </td></tr><tr style="height: 23px;"><td width="73" height="23" style="border-top: none; border-right-color: windowtext; border-bottom: none; border-left: none; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both; text-indent: 18px;"><span style="font-family: 宋體; color: #111111;">name</span></p> </td><td width="250" height="23" style="border-width: initial; border-style: none; border-color: initial; line-height: 22px; padding: 1px 7px 0px; overflow: hidden; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"> <p style="overflow-wrap: break-word; clear: both; text-indent: 18px;"><span style="font-family: 宋體; color: #111111;">定義對象的唯一名稱。</span></p> </td></tr></tbody></table><pre style="color: rgb(24, 30, 51); font-size: 18px; margin-top: 15px; margin-bottom: 0px; padding: 20px; border: 1px dotted rgb(119, 136, 85); font-family: Consolas; width: 765px; background-color: rgb(245, 245, 245); line-height: 1.4;"><form oninput="x.value=parseInt(a.value)+parseInt(b.value)">0
<input type="range" id="a" value="50">100
+<input type="number" id="b" value="50">
=<output name="x" for="a b"></output>
</form></pre><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 2em; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: PingFangSC-Regular, Verdana, Arial, 微軟雅黑, 宋體; background-color: #FDFCF8;">執(zhí)行計(jì)算然后在 <output> 元素中顯示結(jié)果:</span></p><p style="white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow-wrap: break-word; clear: both; text-indent: 2em; color: rgb(24, 30, 51); font-family: PingFangSC, 微軟雅黑, 黑體, Arial, Helvetica, sans-serif; font-size: 18px; background-color: rgb(255, 255, 255);"><span style="font-family: PingFangSC-Regular, Verdana, Arial, 微軟雅黑, 宋體; background-color: #FDFCF8;"><img src="https://p.ananas.chaoxing.com/star3/origin/63dc24cc158d5bbb106f4b68786342c7.png" style="border: none; padding: 0px; max-width: 100%;"/></span></p><p><br/></p>Wed, 02 Nov 2022 11:32:03 +0800