如何使用CSS插入页脚 [英] How to insert footer w/ CSS

查看:72
本文介绍了如何使用CSS插入页脚的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是CSS的新手(两天前学会了),我父亲告诉我,我可以使用CSS插入页脚或标题或某种预先格式化的文本......然后他就去睡觉了。 />

我的网站是www.stlswedespeed.com


我想拉下底部导航(包括底部的五个链接:论坛 - 日历)在索引页面之外,将其存储在其他地方(如果我正确理解它进入我的样式表?),然后将其重新插入索引,/ links.html和/about.html。


我试过翻阅CSS Cookbook。作者克里斯托弗施密特并没有找到任何东西。我会再次问我的爸爸,但他今晚才到这里。


感谢您的帮助。


大卫

解决方案

我不知道CSS,但你绝对可以用javascript或服务器语言来做。


大声笑。您在该页面上看到的HTML和CSS是我对网页设计的全部了解。我父亲的工作是建立网站(www.hens-teeth.net),所以当我开始使用Saab&镇上的沃尔沃俱乐部他开始帮我建立这个网站。我所知道的关于Java的是它让我在网上玩真正有趣的游戏,让我爸爸把培根带回家。


两件快事:

1)Java是与JavaScript不一样,并且彼此没有关系。

2)新页面应始终使用严格的doctype。你不需要过渡性的。替换为:

<!DOCTYPE html PUBLIC" - // W3C // DTD HTML 4.01 // EN"

" http:// www .w3.org / TR / HTML4 / strict.dtd">

I''m extremely new to CSS (learned it two nights ago) and my dad told me I could insert a footer or header or some sort of preformatted text using CSS.... then he went to bed.

My website is www.stlswedespeed.com

I''d like to pull the bottom navigation (includes the five links at the bottom: forums - calendar) out of that index page, store it somewhere else (if i understood him correctly it goes into my stylesheet?), and then reinsert it to the index, /links.html, and /about.html.

I tried looking through "CSS Cookbook" by Christopher Schmitt and couldn''t find anything. I''d ask my dad again but he''s not here until late tonight.

Thanks for any and all help.

David

解决方案

I don''t know about CSS but you can definitely do it with javascript or a serverside language.


lol. The HTML and CSS that you see on that page is all I know about web design. My dad''s job is building website (www.hens-teeth.net) and so when I started a Saab & Volvo club in town he started helping me build this site. All I know about Java is it lets me play really fun games online and lets my dad bring home the bacon.


Two quick things:
1) Java is not the same as JavaScript and have no relation to each other.
2) New pages should always use a strict doctype. You have no need for the transitional one. Replace it with this one:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">


这篇关于如何使用CSS插入页脚的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆