Home > Web Front-end > HTML Tutorial > A question about css_html/css_WEB-ITnose

A question about css_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:41:39
Original
911 people have browsed it

If I write

in the html file, the table can be placed in the center of the web page. However, if I write table{align:center;} in an external css file and then use a link to link the css, it will not work. , it seems that there is no align attribute when writing the table in the css file. Ask God to help solve it.


Reply to discussion (solution)

Use

table{margin: 0 auto; width: table的宽度}
Copy after login

Oh, it really works, thank you!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template