由于我已经使用了中心标签,因此我无法将我的网站设在中心位置。 [英] I am not able to make my website page in center as I already used center tag..

查看:100
本文介绍了由于我已经使用了中心标签,因此我无法将我的网站设在中心位置。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法将我的网站设在中心,因为我已经使用了中心标签..

任何人都可以提供解决方案吗?



我尝试了什么:



i把它放在我的桌子上..

i am not able to make my website page in center as i already used center tag..
can anyone provide the solution ??

What I have tried:

i put this on my table..

<table width="798" border="0" align="center" cellpadding="0" cellspacing="0" removed="imagenew/full_up_line.jpg"></table>

推荐答案

将您的表包装在 div 元素中并应用CSS,如:



Wrap your table inside a div element and apply CSS like:

#Div1{
    width:600px;
    margin-left:auto;
    margin-right:auto;
}





或者您只需将 align =center设置为您的Div。


这篇关于由于我已经使用了中心标签,因此我无法将我的网站设在中心位置。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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