我有一個簡單的基本.html文檔,我用於「My Links.html」本地,離線頁面用作存儲超鏈接到其他網站的方式我覺得很有趣。這有點像在旅途中的便攜式「書籤」頁面。下面是我已經創建了一些示例代碼:html表單添加鏈接和說明到頁面
<b><h3>Web Design Resources</h3></b>
<hr />
<br />
<b><h4><u>CSS Tutorials</u></h4></b>
Line25.com
<ul>
<a href="http://line25.com/tutorials/" target="_blank">Tutorials</a>
- main tutorials page<br />
<a href="http://line25.com/tutorials/how-to-create-a-pure-css-dropdown-menu" target="_blank">Pure CSS Dropdown</a>
- Creating a dropdown menu solely out of css, nothing else (includes sub menus that slide out to the right) <br />
<a href="http://line25.com/tutorials/how-to-create-a-trendy-flat-style-nav-menu-in-css" target="_blank">Trendy flat-style-css-menu</a>
- how to create a trendy flat style css menu (hover over "menu image" puts menu title to the right of the images)<br />
<a href="http://line25.com/tutorials/how-to-create-a-slick-features-table-in-html-css" target="_blank">Slick Features Comparison Table</a>
- a ghosted (semi transparent) table that vertically compares three items with the categories on the left, box highlight on category font when hovering over any of the text in that row<br />
簡單崩頭的影響 - 與頭文字頂部固定水平菜單/圖像向下滾動頁面時是隱藏的,與內容替換
目前我手動打開html文檔並對其進行編輯,以添加每個新鏈接,描述和類別(當他們出現時)。
我在做的是添加一些簡單的表單和一個提交按鈕來更新這個離線.html文檔。我想將所有包含在單個文檔中的內容都放在一起,以便於移動。
理想情況下它會使用這種格式添加文字:「超鏈接 - 說明」
與現有類別的下拉列表,以便將其添加到正確的部分。只需幾個文本框,一個下拉框和一個提交鏈接或按鈕。沒有什麼奇特的東西,只有那些「完成工作」的骨頭。
感謝大家,即使你能指出正確的方向,或讓我知道元素名稱,以便更有效地研究我期望做的事情。
我的理解是,你想追加一個HTML文件使用可用的HTML(jscript,CSS,HTML)在客戶端側。這是不可能的,因爲你看到的是html文件的副本,實際的html文件被瀏覽器加載到dom中,所以即使你修改它,它的工作方式也不會更新html文件。但是,您可以編寫類似Windows窗體應用程序的東西來執行此操作,或使用服務器語言。但是該文件不能以您所描述的方式寫入自己。 – RandomUs1r 2013-04-26 22:34:32