10.怎樣定義本網(wǎng)頁的關(guān)鍵字? 在網(wǎng)頁中加入關(guān)鍵字,可以供某些搜索站臺機器人的使用,它們會利用該關(guān)鍵字為你的網(wǎng)站做索引,這樣,當(dāng)別人用關(guān)鍵字搜索網(wǎng)站時,如果你的網(wǎng)頁包含該關(guān)鍵字,那么就可以被列出了,定義本網(wǎng)頁關(guān)鍵字,可以加入以下代碼: meta name="keywords" content="html,dreamweaver,flash,css"> content 所包含的就是關(guān)鍵字,你可以自行設(shè)置。 這里有個技巧,你可以重復(fù)某一個單詞,這樣可以提高自己網(wǎng)站的排行位置,如: meta name="keywords" content="dreamweaver,dreamweaver,dreamweaver">
11.怎樣鏈接本網(wǎng)頁的對象? 有時鏈接發(fā)生在一個網(wǎng)頁里,比如頁面上半部分列出了目錄,下部分就列出了內(nèi)容,而單擊目錄任何一個項目都可以跳到指定部分,可以在要被鏈接的內(nèi)容部分設(shè)置如下方式: a name="#1">/a> 而要鏈接到以上設(shè)置的部分,可以如下編制: a href="index.htm#t1">t1/a>
meta http-equiv="Content-Type" content="Application/msword">
還有其它經(jīng)常設(shè)置的文件類型:
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
留言板-讓訪問者給你的站點提提意見; 論壇-討論某一個特定主題的地方,它和留言板的區(qū)別是留言板可以包含任何內(nèi)容; 調(diào)查表單-利用個人站點,你可以對某一問題進行調(diào)查,然后看看各意見的支持率; 訂閱表單-通過郵件給訂閱者提供站點的更新信息; 聊天室-一個即時的對話場所,特別可以對一個特定主題組辦一個網(wǎng)絡(luò)討論; 搜索引擎-當(dāng)站點內(nèi)容過多時,搜索引擎可以讓訪問者快速找到想看的內(nèi)容; 88.如何縮進文本段落? 在head>/head>部分加入: p { text-indent: 1% } p 標簽為HTML文本段落的標簽,1%為縮進的范圍
89.如何點擊一個鏈接同時在兩個frame 內(nèi)變化? 對于一個由topFrame、leftFrame、mainFrame 構(gòu)成的頁面,如果想在leftFrame 中點擊鏈接,同時在其他兩個frame 內(nèi)變化,代碼如下: 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文件中設(shè)置好該文件類型,比如: meta http-equiv="Content-Type" content="application/msword"> 還有其它經(jīng)常設(shè)置的文件類型: 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