發表文章

目前顯示的是有「Html5」標籤的文章

Html 防止Chrome 的自動帳密填入

當Chrome看到一個input/text加上一個input/passwprd的時候,Chrome會對他使用自動填入帳號密碼這項功能,然而有時候只是剛好而已,並不是想要使用這個功能。 於是我們可以在上面加入一對假的input/text, input/password以防止Chrome對我們的input做自動填入帳密的功能 <input style="visibility: hidden; width: 0px; height: 0px;" name="fakeusernameremembered" type="text"> <input style="visibility: hidden; width: 0px; height: 0px;" name="fakepasswordremembered" type="password">

Html JS .submit() 失效的原因

參考 stoimen’s web log

mobile Safari 連結撃點無效問題

Safari 會判斷html標籤上面是不是有 cursor:pointer; 的屬性,所以在你的tag上加上css => cursor:pointer;

Html5 small note

一定要有DOCTYPE宣告。 EX: <!doctype html> 記得要宣告編碼,不是所有瀏覽器都會猜到你用的編碼。 EX: <meta charset="utf-8">  一個最基本的html網頁 ! Look This! 注解 : <!-- ... ... ... ... -->  <Script><Link>現在不需要type="text/javascript" In HTML4 <script   type = "text/javascript"   src = "file.js" > </script > In HTML5 <script   src = "file.js" > </script > -- In HTML4 <link   rel = "stylesheet"   type = "text/css"   href = "file.css" > In HTML5 <link   rel = "stylesheet"   href = "file.css" > <i> 所代表的文字,有"alternate voice" or "mood"。 <b>所代表的文字有"stylistically offset"。 <em> 所代表的文字有 “stress emphasis” <strong> 所代表的文字有 “strong importance” 一個table 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 <table >    <thead >      <tr >        <th > </th >        ...