第三天

     text-decoration;去下劃線    <A></A>;超鏈接

 

     錨點;給要轉到的網頁最後行加上id;然後在超鏈接上(html後面)加上#“id”就ok!!


    terget;(_self;默認)不跳轉頁面     (_blank)跳轉頁面




 例如;<!DOCTYPE html>

 <html>

 <head>

 <meta charset="utf8">

<title></title>

<style>

a{

text-decoration: none;

color: red

}

body{

padding: 0px;

margin: 0px

}

#gengda{

height: 30px;

width: 100%;

background-color: black;

}

#da{

height: 30px;

width: 500px;

margin: 0 auto;

}

li{

line-height: 30px;

text-align: center;

margin-right: 10px;

width: 100px;

height:30px;

color: white;

/*background-color: blue;*/

list-style: none;

float: left;

}

li:hover{

background-color: green

}

#c{width: 500px;

height: 500px;

margin: 0 auto

}

</style>

</head>

<body>

<div id="gengda">

<ol id="da">

(<a target="_blank" href="gg.html#a">

<li >首頁</li>

</a>)---------------------關鍵

<!-- 錨點 -->

<li>關於我們</li>

<li>聯繫我們</li>

<li>註冊會員</li>

<div id="c">

<img src="D:/D/t01b3b7ec6bd2a64da9.jpg"

width="500PX"

height="500PX">

</div>

</ol>

</div>


</body>

</html>



跳轉頁面;<!DOCTYPE html>

<html>

<head>

<meta charset="utf8">

<title></title>

<style>

div

{

width: 400px;

margin: 0 auto;


}

h3

{

text-indent: 100px;color: red

}

.a

{

font-size: 10px;


}


img

{

width: 400px

}

</style>

</head>

<body>


<div>


<h3>習近平與新聞工作記者:小偉</h3>


<p class="a">&nbsp;&nbsp;原標題:與新聞工作記者:那些難忘的瞬間</p>


<p class="a">&nbsp;&nbsp;新聞記者&nbsp;黃月&nbsp;王子軍</p>


<p class="a">


&nbsp;&nbsp;[學習進行時]11月8日是第十七個中國記者節。習近平一直十分關心新聞工作者,近1年間,在人民日報社、新華社、中央電視臺等媒體調研考察時,他接觸最多的就是一線編輯記者。一個個難忘的瞬間,濃縮着總書記對廣大新聞工作者的關愛,也寄託着殷切期待。新華網《學習進行時》爲您一一梳理。


</p>


<h6>&nbsp;&nbsp;看望獲獎者,要求新聞工作者堅持“四向”</h6>


<img src="D:/D/10783767_002334131156_2.jpg">


</div>

(<h1 id="a">呵呵哈哈哈</h1>)---------關鍵


</body>

</html>


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章