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"> body { padding: 0; margin: 0 auto; } #footer { height: 40px; line-height: 40px; position: fixed; bottom: 0; width: 100%; text-align: center; background: #333; color: #fff; font-family: Arial; font-size: 12px; letter-spacing: 1px; } .content { height: 1800px; width: 100%; text-align: center; } </style></head><body><!-- 作者:zxu 时间:2016-03-24 描述:页面添加版权信息 --><div id="footer">CopyRight@copy2012 </div></body></html>

转载于:https://blog.csdn.net/thanosisme/article/details/52061940

<!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"> body { padding: 0; margin: 0 auto; } #footer { height: 40px; line-height: 40px; position: fixed; bottom: 0; width: 100%; text-align: center; background: #333; color: #fff; font-family: Arial; font-size: 12px; letter-spacing: 1px; } .content { height: 1800px; width: 100%; text-align: center; } </style></head><body><!-- 作者:zxu 时间:2016-03-24 描述:页面添加版权信息 --><div id="footer">CopyRight@copy2012 </div></body></html>

上一篇:CSS导航菜单(一级菜单)


下一篇:CSS中的margin、border、padding区别