Home >Web Front-end >HTML Tutorial >CSS设置DIV居中_html/css_WEB-ITnose

CSS设置DIV居中_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:35:381213browse

CSS设置DIV居中


<style type="text/css">body{     text-align:center;}.divs{    margin:0 auto;}</style>     <div class="divs">CSS设置DIV居中</div>


版权声明:本文为博主原创文章,未经博主允许不得转载。

Statement:
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