Introduction to Divs

div 是一个 HTML 元素。这就是技术定义。对于普通人来说,div 是一个可用于创建高级页面布局的框(理论上)。

盒子

div 创建一个可以应用内联 CSS 的盒子。为了显示这个框,这里有一个带边框的 div :

[[div style="border:1px solid #000;width:100px;height:100px;"]]
盒子
[[/div]]

此代码将创建:

盒子

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License
Click here to edit contents of this page.
Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.
Append content without editing the whole page source.
Check out how this page has evolved in the past.
If you want to discuss contents of this page - this is the easiest way to do it.
View and manage file attachments for this page.
A few useful tools to manage this Site.
Change the name (also URL address, possibly the category) of the page.
View wiki source for this page without editing.
View/set parent page (used for creating breadcrumbs and structured layout).
Notify administrators if there is objectionable content in this page.
Something does not work as expected? Find out what you can do.
General Wikidot.com documentation and help section.
Wikidot.com Terms of Service - what you can, what you should not etc.
Wikidot.com Privacy Policy.

AltStyle によって変換されたページ (->オリジナル) /