Paragraph composition - aligned
I want to block elements of text, picture settings centered style it? Can use text-align style code, the following code may be implemented text centered.
{h1 of text-align = left: Center; } < h1 of > Gatsby </ h1 of >
The same can be set Left:
{h1 of text-align = left: left; } < h1 of > Gatsby </ h1 of >
You can also set the right home:
{h1 of text-align = left: right; } < h1 of > Gatsby </ h1 of >
Example:
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>对齐</title> <style type="text/css"> div{text-align:center;} </style> </head> <body> <div><img src="http://img.mukewang.com/52b4113500018cf102000200.jpg" ></div> </body> </html>