如何使桌子居中? [英] How to center a table?

查看:105
本文介绍了如何使桌子居中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网页,我使用Photoshop从psd文件转换为html并导入到Dreamweaver中。我遇到的问题是,一些观众评论了这个页面是否合理的事实。我在带有环绕选择的html中插入了一个div标签,并试图修改css规则,以便正确对齐,并且页面仍然对齐左对齐。这是我的css代码:

I have a web page that I converted from a psd file to html with Photoshop and imported into Dreamweaver. The problem I''m having is that some viewers comment on the fact that the page is left justified. I inserted a div tag into the html with a wrap around selection and tried to modify the css rules so that this would align properly, and the page is still aligning left justified. Here is the code that I have for my css:

展开 | 选择 | Wrap | 行号

推荐答案

这是糟糕的HTML,你应该考虑自己制作HTML en CSS,而不是让Photoshop这样做。 Photoshop是一款出色的图像编辑软件,但不适用于开发。


并且表格不能用于布局构建,而是使用< div> -tag进行划分。 />

首先将您的布局转换为语义布局然后我们将能够更好地帮助您。


B。
This is bad HTML, you should consider making the HTML en CSS yourself and not let Photoshop do this. Photoshop is a great image editing software but not for development.

And tables are not meant to be used for layout construction, you make divisions with the <div>-tag.

First convert your layout to a semantic layout and then we''ll be able to help you much better.

B.


您在哪个浏览器中查看此内容?如果IE也提供了版本。
What browser are you viewing this in? If IE provide the version as well.


Bryan,


不幸的是,因为这是我必须转换的psd文件,所以对于生成的html,我真的不是很多。我只限于此,因为我必须将psd文件转换为html。


JKing,版本是Windows 7中的IE 8。
Bryan,

Unfortunately since this is a psd file that I had to convert, there''s really not a lot I can do about the html that''s generated. I''m limited to that because I have to convert the psd file to html.

JKing, the version is IE 8 in Windows 7.


这篇关于如何使桌子居中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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