—
页面
代码
<div
class="content">
<div
class="left"></div>
<div
class="mid"></div>
<div
class="right"></div>
</div>
css文件
.content{
width:800px
magin:0
auto
}
.left{
float:left}
.mid{
float:left}
.right{
float:left}
link: https://codepen.io/knyttneve/pen/EBNqPN
link: https://codepen.io/GeoffreyCrofte/pen/jEkBL
PS:点击黑屏,是因为点击的时候打开了新页面......,所以大家不要惊慌哈。
link: https://codepen.io/maxxscholten/pen/zxegjL
link: https://codepen.io/lsirivong/pen/ekBxI
PS:这个星级是静态的,没有动效。
link: https://codepen.io/jsdev/pen/ojycf
link: https://codepen.io/andreacrawford/pen/NvqJXW
link: https://codepen.io/meowwwls/pen/BzaWZg
link: https://codepen.io/elmahdim/pen/bZmwPK
link: https://codepen.io/mburnette/pen/eNNZbm
link: https://codepen.io/s_crystal/pen/pJpMZX
link: https://codepen.io/bennettfeely/pen/EKrENG
link: https://codepen.io/brigi_cs/pen/bYjGEK
link: https://codepen.io/airen/pen/XoJKVr
link: https://codepen.io/tadaima/pen/rjvYab
link: https://codepen.io/ryanparag/pen/prKVGZ
PS:这个也是静态的。。。
link: https://codepen.io/Bluetidepro/pen/GkpEa
link: https://codepen.io/roxy225/pen/zvKByN
link: https://codepen.io/khone-vongsouthi/pen/gfzoK
link: https://codepen.io/fusco/pen/MwawEL
link: https://codepen.io/kanduvisla/pen/NqdbZP
link: https://codepen.io/orchard/pen/Jnwvb
link: https://codepen.io/jexordexan/pen/yyYEJa
link: https://codepen.io/adrianlambertz/pen/hqpyK
link: https://codepen.io/damianmuti/pen/KmEMdR
link: https://codepen.io/blixt/pen/QyNXEp
下面就是一个简单的css定义:
<html><head>
<meta http-equiv="Content-Type" content="text/html charset=gb2312" />
<title></title>
<style>
.abc{width:500pxheight:30pxline-height:30pxtext-align:centerborder:1px solid #cccfont-size:13pxcolor:redmargin:auto}
</style>
</head>
<body>
<div class="abc">文字文字</div>
</body>
</html>
<style></style>之间写css代码。
.abc{这里面是定义abc的css}
<div class="abc">文字文字</div>这个class="abc" 就代表这个div的class是abc。css中定义abc就可以了。