Skip to content

Instantly share code, notes, and snippets.

@hidoos
Created January 2, 2014 15:48
Show Gist options
  • Save hidoos/8221185 to your computer and use it in GitHub Desktop.
Save hidoos/8221185 to your computer and use it in GitHub Desktop.
Untitled
body{
padding:50px;
}
.demo{
background:#eee;
overflow:hidden;
border-radius:5px;
/* text-align 是继承的 */
text-align:center;
}
.demo p{
padding:3px 10px;
background:#ddd;
width:600px;
margin:50px 20px;
float:left;
}
<!-- content to be placed inside <body>…</body> -->
<!-- content to be placed inside <body>…</body> -->
<div class="demo">
<p>我是一个水平的段落</p>
<p>我是一个水平的段落</p>
</div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment