Home > Web Front-end > HTML Tutorial > html is centered on top, bottom, left and right_html/css_WEB-ITnose

html is centered on top, bottom, left and right_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:40:29
Original
1455 people have browsed it

给要居中的图片或者链接所在的div 设置如下属性width:   px;height:   px;display:table-cell;text-align:center;vertical-align:middle;
Copy after login

Copyright Statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.

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