Home >Web Front-end >HTML Tutorial >DIV CSS center code (and right)_html/css_WEB-ITnose

DIV CSS center code (and right)_html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-24 12:27:042425browse

DIV centered:

<div style="margin-left:auto;margin-right:auto;width:760px;background-color:Silver;">DIV居中 CSS 代码 <a href="http://jihua.cnblogs.com">jihua.cnblogs.com</a></div>

DIV right:

<div style="margin-left:auto;margin-right:2px;width:760px;background-color:Aqua;">DIV靠右 CSS 代码 <a href="http://jihua.cnblogs.com">jihua.cnblogs.com</a></div>

DIV defaults to the left:

<div style="width:760px;background-color:Fuchsia;">DIV靠左代码 <a href="http://jihua.cnblogs.com">jihua.cnblogs.com</a></div>

DIV centered CSS code jihua.cnblogs.com

DIV right CSS code jihua.cnblogs.com

DIV close Left code jihua.cnblogs.com

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