㈠ 求html靜態網頁源碼
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>濺</title>
<style>
<!--
body {
background:url(img/bg9.gif);
margin:0px;
padding:0px;
}
.pic{
border:1px solid #00406c;
}
p {
padding-top:30px;
color:#001671;
}
p.con{
padding-left:4px;
padding-right:4px;
}
p.title {
paddin-top;0px;
}
.chara1 {
font-size:12px;
background-color:#90bcff;
}
.chara1 td{
text-align:center;
}
.chara2 {
background-color:#d2e7ff;
text-align:center;
font-size:12px;
vertical-align:top;
}
.chara3 {
background:#e9fbff url(img/self.jpg) no-repeat bottom right;
vertical-align:top;
padding-top:15px;
padding-left:30px;
font-size:12px;padding-right:15px;
}
-->
</style>
</head>
<body>
<table align="center" cellpadding="1" cellspacing="0">
<tr><td><img src="img/banner3.jpg" border="0" /></td></tr>
</table>
<table width="600px" cellpadding="2" cellspacing="2" class="chara1" align="center">
<tr><td>首面</td><td>心情日記</td><td>Free</td><td>一起走到</td><td>從明天起</td><td>紙飛機</td><td>下一站</td></tr>
</table>
<table width="600px" align="center" cellpadding="0" cellspacing="1">
<tr>
<td width="150px" class="chara2"> <p><img src="img/selfpic.jpg" class="pic"/><br />我的日記本</p>
<p class="con">他們彼此深信,是瞬間並發的熱情讓他們相遇。這樣的確定是美麗的,但變幻無常更為美麗。</p>
<p> <img src="img/selfpic2.jpg" class="pic"/><br/>心情軌跡</p>
<p class="con">董事長的一切都讓人既羨慕又忌妒,但更讓人受不了的是,有一天,上蒼忽然賜給他一個神奇的禮物</p> </td>
<td class="chara3">
<h4>介紹</h4>
<p>我努力的抓緊世界,最後卻仍被世界淘汰,如果一開始就鬆手,我會不那麼傷心嗎?你說,親愛的孩子,世事難料,隨它去吧!</p>
<h4>照相本子</h4>
<p>關於童年,你記住了什麼? <br>
兩歲時,我擁有一隻巨大的粉紅豬,它總在我嚎啕大哭時逗我笑。<br>
三歲時,我騎著小木馬一路搖到外婆家,它不喝水也不吃草。<br>
四歲時,我離家出走,在公車上睡著了,最後是太空超人送我回家。<br>
我真的沒騙你,我通通都記得,還有照片為證。
</p>
<h4>地下鐵</h4>
<p>天使在地下鐵的入口,<br>
和我說再見的那一年,<br>
我漸漸看不見了。<br>
十五歲生日的那年秋天早晨,<br>
窗外下著毛毛雨,<br>
我喂好我的貓。<br>
六點零五分,<br>
我走進地下鐵。</p>
<h4>向左走向右走</h4>
<p>They're both convinced<br>
that a sudden passion joined them.<br>
Such certainth is beautiful,<br>
but uncertainty is more beautiful still.</p>
<br>
</td>
</tr>
</table>
</body>
</html>
㈡ javascript 輸入一個網址,獲取這個網頁的源碼
<html>
<head>
<title>顯示網頁源碼</title>
</head>
<body>
<script>
functionGetXmlHttpObject()
{
varHttp=null;
try
{
//Firefox,Opera8.0+,Safari
Http=newXMLHttpRequest();
}
catch(e)
{
//InternetExplorer
try
{
Http=newActiveXObject("Msxml2.XMLHTTP");
}
catch(e)
{
Http=newActiveXObject("Microsoft.XMLHTTP");
}
}
returnHttp;
}
functiond(){
vart=document.getElementById('text');
xmlHttp=GetXmlHttpObject();
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",t.value,true);
xmlHttp.send(null);
}
functionstateChanged()
{
if(xmlHttp.readyState==4)
{
document.getElementById("c").innerText=xmlHttp.responseText;
}
}
</script>
輸入地址:<inputtype='text'id='text'style='width:300px'/>
<inputtype='button'value='下載'onclick='d()'/>
<br/>
<divid='c'>顯示結果</div>
</body>
</html>
IE內核剛剛測試可以顯示網頁內容 谷歌內核不允許跨域訪問
㈢ 如何查看一個網頁的HTML源代碼
查看一個網頁HTML源代碼的方法是:打開一個網頁之後,點擊瀏覽器上的菜單查看.選擇下面的源文件選項.即可打開一個記事本文件,其中就是這個網頁所有代碼.也可以將滑鼠放置到網頁上的任何位置(只要是位於沒有鏈接.圖片處,最好是網頁中的空白區域),點擊滑鼠右鍵.選擇其中的查看源文件即可.
㈣ 如何獲取一個網頁完整的HTML代碼
在頁面上 右鍵->查看頁面源代碼
然後 全選 復制粘貼
㈤ 東京國立博物館的官方網站
東京國立博物館網頁(只有日文和英文)http://www.tnm.jp/jp/servlet/Con?pageId=X00/processId=00
㈥ 易語言如何獲取網頁源碼的並展示出來
.版本2
.支持庫RegEx
.支持庫internet
.支持庫iext
.子程序_按鈕1_被單擊
.局部變數網頁文本,文本型
.局部變數表達式,正則表達式
.局部變數搜索結果,搜索結果,,"0"
.局部變數計次變數,整數型
.局部變數文本,文本型
網頁文本=到文本(HTTP讀文件(編輯框1.內容))
網頁文本=子文本替換(網頁文本,#引號,「'」,0,,真)
網頁文本=到小寫(網頁文本)
透明標簽1.標題=取中間文(網頁文本,「<title>」,「</title>」)
表達式.創建(「meta(.*?)>」,假)
搜索結果=表達式.搜索全部(網頁文本)
.計次循環首(取數組成員數(搜索結果),計次變數)
文本=搜索結果[計次變數].取子匹配文本(網頁文本,1,)
.判斷開始(尋找文本(文本,「name='keywords'」,1,假)>0)
透明標簽2.標題=取中間文(文本,「content='」,「'」)
.判斷(尋找文本(文本,「name='description'」,1,假)>0)
透明標簽3.標題=取中間文(文本,「content='」,「'」)
.默認
.判斷結束
.計次循環尾()
.子程序取中間文,文本型
.參數全文,文本型
.參數左文,文本型
.參數右文,文本型
.局部變數位置,整數型
.局部變數總長度,整數型
.局部變數文本,文本型
總長度=取文本長度(全文)
位置=尋找文本(全文,左文,,假)
.如果真(位置<0)
返回(「」)
.如果真結束
位置=位置+取文本長度(左文)
文本=取文本中間(全文,位置,總長度)
總長度=取文本長度(文本)
位置=尋找文本(文本,右文,,假)-1
.如果真(位置<0)
返回(「」)
.如果真結束
文本=取文本中間(文本,1,位置)
返回(文本)
㈦ 我需要一個網頁的設計代碼,HTML網頁設計,設計一個網頁,一個完整的源代碼
<html><head><title>帥哥的個人主頁</title></head><body>我是XXX,男,XX年X月X日出生,XX省XX市人,長得很帥!<br>李嘉誠理財名言:世界上並非每一件事情,都是金錢可以解決的,但是確實有很多事情需要金錢才能解決。</body></html>
把上面的代碼用記事本存為index.html文件打開就行。
怎麼樣,這個夠簡單了吧。純手工書寫。
如需更好的,可以說明具體要求。
㈧ 就簡單簡單網頁代碼
昨天晚上新寫的
給你吧
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta
http-equiv="Content-Type"
content="text/html;
charset=gb2312"
/>
<title>標准網頁</title>
<style
type="text/css"
>
#bodydiv{
position:relative;
margin-left:95px;
margin-right:95px;}
#body{
background-color:#FF8080;
margin-top:auto;
color:
#996600;
font-family:
"黑體";
;
}
#bannerdiv{
position:relative;}
#bannertable{}
#centerdiv{
position:relative;
padding-left:3px;}
#centertable{
}
#rootdiv{
margin-top:11px;}
</style>
</head>
<body
id="body"
>
<div
id="bodydiv">
<div
id="bannerdiv">
<table
align="center"
id="bannertable">
<tr>
<td>
<img
src="banner.gif"
width="770"
height="170">
</td>
</tr>
</table>
</div>
<div
id="centerdiv">
<table
id="centertable"
border="0"
cellpadding="7px"
>
<tr>
<td>
<table
border="0"
style="
height:24px;
width:200px;"background="divbg.gif"
>
<tr><td
align="center"></td></tr></table>
<table
border="0"
style="height:170px;
width:200px;
background-color:#FF814f"
cellpadding="0"
cellspacing="0">
<tr><td
align="center"><img
src="headimg.jpg"
width="200"
height="170"
/></td></tr></table>
</td>
<td
rowspan="2">
<table
border="0"
style="
height:24px;
width:373px;"background="divbg.gif"
>
<tr><td
align="center">日誌</td></tr></table>
<table
border="0"
style="height:380px;
width:373px;
background-color:#FF814f"
cellpadding="0"
cellspacing="0">
<tr><td></td></tr></table>
</td>
<td
rowspan="2">
<table
border="0"
style="
height:24px;
width:160px;"background="divbg.gif"
>
<tr><td
align="center">網站導航</td></tr></table>
<table
border="0"
style="height:380px;
width:160px;
background-color:#FF814f"
cellpadding="0"
cellspacing="0">
<tr><td></td></tr></table>
</td>
</tr>
<tr>
<td>
<table
border="0"
style="
height:24px;
width:200px;"background="divbg.gif"
>
<tr><td
align="center">心情</td></tr></table>
<table
border="0"
style="height:170px;
width:200px;
background-color:#FF814f"
cellpadding="0"
cellspacing="0">
<tr><td></td></tr></table>
</td>
</tr>
<tr>
<td>
<table
border="0"
style="
height:24px;
width:200px;"background="divbg.gif"
>
<tr><td
align="center">頭像31</td></tr></table>
<table
border="0"
style="height:170px;
width:200px;
background-color:#FF814f"
cellpadding="0"
cellspacing="0">
<tr><td></td></tr></table>
</td>
<td>
<table
border="0"
style="
height:24px;
width:373px;"background="divbg.gif"
>
<tr><td
align="center">頭像32</td></tr></table>
<table
border="0"
style="height:170px;
width:373px;
background-color:#FF814f"
cellpadding="0"
cellspacing="0">
<tr><td></td></tr></table>
</td>
<td>
<table
border="0"
style="
height:24px;
width:160px;"background="divbg.gif"
>
<tr><td
align="center">頭像33</td></tr></table>
<table
border="0"
style="height:170px;
width:160px;
background-color:#FF814f"
cellpadding="0"
cellspacing="0">
<tr><td></td></tr></table>
</td>
</tr>
</table>
</div>
<div
id="rootdiv">
<table
align="center">
<tr>
<td
align="center">
<img
src="rootimg.gif"
height="60"
width="190"
/>
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
</div>
</div>
</body>
</html>
㈨ 怎麼打開網頁的源代碼
一般瀏覽器中有查看源代碼的菜單。
通過頂部菜單可以看到開發者工具,一般包含查看網頁源代碼的菜單。
大部分瀏覽器右鍵也可以查看源代碼。
谷歌瀏覽器可以通過地址欄輸入指令查看源代碼。
㈩ 看到一個簡單的網頁,如何把網頁的源碼扒下來,應用到我自己的網站上
如果只是一個網頁的話,右鍵查看源碼就可以得到基本的源代碼。然後將圖片,JS ,css等資源下載到你自己的空間就可以用了。