html公用页脚使用代码,页脚在HTML

正常显示我使用的主要内容两个列layout.One和一个侧边栏页脚在HTML

在HTML中我使用下面的代码

-----------

-----------

CSS文件包括以下代码

#content

{

padding-top:100px;

padding-bottom:50px;

width:1000px;

margin:0px auto;

}

#main-content

{

width:720px;

padding-top:250px;

padding-bottom:30px;

padding-right:20px;

position : absolute;

}

#sidebar

{

float:right;

width:270px;

padding-top:250px;

padding-bottom:30px;

}

#footer

{

background: url(../images/footer.jpg) repeat-x;

width:100%;

clear:both;

margin:auto;

}

页脚代码显示在页面的中间,可能是在侧边栏 可以看到here结束。页脚是黑色。

+1

你正在通过'javascript'编写'footer div' ..但是y ..在那个cuz中没有必要使用javascript,因此只需要写'静态内容'!把它带回到html! –

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值