0
我想給頁面提供兩個頁腳。我的頁面看起來像這樣:如何在html文檔中提供兩個頁腳
我想讓兩個鏈接都作爲頁腳的頁腳。 我的HTML代碼是在這裏:
<html>
<head>
<link rel="stylesheet" href="style2.css"/>
</head>
<body>
<h1 class="header"> My site </h1>
<p class="first">
<span>T</span>the textthe textthe textthe textthe textthe textthe textthe textthe textthe textthe textthe textthe textthe textthe textthe textthe textthe textthe textthe textthe textthe textthe textthe textthe textthe textthe text
</p>
<p class="second">
<span class="my">Y</span> My second paraMy second paraMy second paraMy second paraMy second paraMy second paraMy second paraMy second paraMy second paraMy second paraMy second paraMy second paraMy second paraMy second para
<span class="footer"> Link:<a href="#" > First link </a></span>
</p>
<h3> Link:<a href="#">Secondlink</a> </h3>
</body>
</html>
CSS是在這裏:
body
{
width: 500px;
}
.my
{
font-size: 200%;
float:left;
margin: 0 5px 0 0 ;
}
.header
{
background-color:blue;
text-align: center;
color:#fff;
margin:0;
}
.first
{
float:left;
max-width:200px;
border-right:1px solid green;
margin:0;
padding:4px;
border-left:1px solid green;
}
.second
{
border-left:1px solid green;
float:right;
max-width:200px;
border-right:1px solid green;
margin:0;
padding:4px;
}
h3
{
clear:both;
background-color: green;
color:#fff;
max-width:210px;
}
.footer
{
font-size: 27px;
background-color: green;
color:#fff;
padding:0;
border-collapse:collapse;
}
還告訴我,我怎麼能對兩者之間添加數據。 我如何獲得所需的結果?