【发布时间】:2016-08-17 19:23:15
【问题描述】:
我只是想知道,我们能否在我们的网站上添加一个带有评论框(如 WhatsApp)的粘性页脚。并在同一页面上显示评论。有办法吗?
这是我的 HTML 代码
<!DOCTYPE html> <html lang="en-US">
<head> <link rel="stylesheet" href="main.css" type="text/css" />
<title>ChatRoom</title> </head>
<body> <div id="navigation"> <a href="#">test</a> </div>
</body>
</html>
这是我网站的 CSS
body {
padding: 0;
margin: 0;
font-family: Lucida Grande, Helvetica, Arial, sans-serif;
font-size: 12px;
}
#navigation {
position: fixed;
top: 0;
width: 100%;
color: #ffffff;
height: 10%;
text-align: center;
padding-top: 15px;
/* Adds shadow to the bottom of the bar */
-webkit-box-shadow: 0px 0px 8px 0px #000000;
-moz-box-shadow: 0px 0px 8px 0px #000000;
box-shadow: 0px 0px 8px 0px #000000;
/* Adds the transparent background */
background-color: rgba(60, 179, 113, 1.0);
color: rgba(60, 179, 113, 1.0);
}
#navigation a {
font-size: 40px;
padding-left: 15px;
padding-right: 15px;
color: white;
text-decoration: none;
}
#content {
width: 600px;
padding-top: 70px;
padding-bottom: 30px;
margin-left: auto;
margin-right: auto;
}
#content img {
padding-top: 20px;
padding-bottom: 30px;
}
谁能帮帮我?
【问题讨论】:
标签: javascript html comments whatsapp sticky-footer