Div对齐以放大和居中为中心出 [英] Div alignment to center on zoom in & out

查看:156
本文介绍了Div对齐以放大和居中为中心出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有网站 http://www.d1210091-6206.cp。 blacknight.com/site/home/ 在缩放时出现对齐问题页面上的特定部分(News& fb)div id footerwrapper。所有其他位置都集中在放大&

I have site http://www.d1210091-6206.cp.blacknight.com/site/home/ having alignement issue for zoom in & out for the particular section (News & fb ) div id footerwrapper on the page. All other are aligned centerly on zoom in & out.

我也向您发送了屏幕截图。 http://screencast.com/t/e95jEwR6dki

I am sending you the screen shot also. http://screencast.com/t/e95jEwR6dki

推荐答案

如果您触摸文件style.css,#footer元素的样式以及是否不使用

I check your code, if you touch the file style.css, the style for the element #footer, and if you don't use

float:左;
margin-left:210px;
宽度:600像素

将其删除,div#footer将居中。但是在所有的facebook部分,您会发现它的顶部有些许收获。您可以为此留一些边距或填充。

Erase it, the div#footer will be centered. But at all the facebook section, you will find it with a little crop on the top. You can leave some margin or padding for that.

在临时的Backup old shool方法中,您可以使用标记(如果要更自由地更改样式,不建议使用),两列,每列指定宽度。

In a temporary Backup old shool method, you can use the tag (not recommended if you want to change the styles more freely), with two columns and width specified width for each one.

问候

这篇关于Div对齐以放大和居中为中心出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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