10.怎樣定義本網頁的關鍵字? 在網頁中加入關鍵字,可以供某些搜索站臺機器人的使用,它們會利用該關鍵字為你的網站做索引,這樣,當別人用關鍵字搜索網站時,如果你的網頁包含該關鍵字,那么就可以被列出了,定義本網頁關鍵字,可以加入以下代碼: meta name="keywords" content="html,dreamweaver,flash,css"> content 所包含的就是關鍵字,你可以自行設置。 這里有個技巧,你可以重復某一個單詞,這樣可以提高自己網站的排行位置,如: meta name="keywords" content="dreamweaver,dreamweaver,dreamweaver">
11.怎樣鏈接本網頁的對象? 有時鏈接發生在一個網頁里,比如頁面上半部分列出了目錄,下部分就列出了內容,而單擊目錄任何一個項目都可以跳到指定部分,可以在要被鏈接的內容部分設置如下方式: a name="#1">/a> 而要鏈接到以上設置的部分,可以如下編制: a href="index.htm#t1">t1/a>
meta http-equiv="Content-Type" content="Application/msword">
還有其它經常設置的文件類型:
Application/msword Microsoft Word Document application/pdf PDF Documentapplication/wordperfect6.0 WordPerfect 6.0 Documentapplication/zip ZIP archiveaudio/x-wav WAV audio formataudio/midi MIDI audio formataudio/x-pn-realaudio RealAudioimage/gif GIF image formatimage/jpeg JPEG image formatimage/png PNG image formattext/html HTML documenttext/plain Plain textvideo/mpeg MPEG video formatvideo/quicktime QuickTime video formatvideo/x-msvideo AVI video format
留言板-讓訪問者給你的站點提提意見; 論壇-討論某一個特定主題的地方,它和留言板的區別是留言板可以包含任何內容; 調查表單-利用個人站點,你可以對某一問題進行調查,然后看看各意見的支持率; 訂閱表單-通過郵件給訂閱者提供站點的更新信息; 聊天室-一個即時的對話場所,特別可以對一個特定主題組辦一個網絡討論; 搜索引擎-當站點內容過多時,搜索引擎可以讓訪問者快速找到想看的內容; 88.如何縮進文本段落? 在head>/head>部分加入: p { text-indent: 1% } p 標簽為HTML文本段落的標簽,1%為縮進的范圍
89.如何點擊一個鏈接同時在兩個frame 內變化? 對于一個由topFrame、leftFrame、mainFrame 構成的頁面,如果想在leftFrame 中點擊鏈接,同時在其他兩個frame 內變化,代碼如下: a href="x1.htm" onclick="parent.topFrame.location.href=''x2.htm''" target="mainframe"> 90.前進、后退和刷新 a href="javascript:history.back()">后退/a> a href="javascript:history.go()">前進/a> a href="javascript:location.reload()">刷新/a>
97. 如何讓瀏覽器正確顯示word 文件格式? 為了正確處理word 等格式,你需要在HTML文件中設置好該文件類型,比如: meta http-equiv="Content-Type" content="application/msword"> 還有其它經常設置的文件類型: application/msword Microsoft Word Document application/pdf PDF Document application/wordperfect6.0 WordPerfect 6.0 Document application/zip ZIP archive audio/x-wav WAV audio format audio/midi MIDI audio format audio/x-pn-realaudio RealAudio image/gif GIF image format image/jpeg JPEG image format image/png PNG image format text/html HTML document text/plain Plain text video/mpeg MPEG video format video/quicktime QuickTime video format video/x-msvideo AVI video format