浮动
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
开发工具与关键技术: dw 常识
作者: 熊 强
撰写时间:2019/02/05
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
复习一些刚开始学的浮动
首先我们简单设置一个盒子

.fd{
	width: 200px;
	height: 200px;
	background: red;
	margin: auto;
}

得到的效果是这样的
复习浮动
在中间

.fd{
	width: 200px;
	height: 200px;
	background: red;
	margin: auto;
	float: right;
}

右浮动复习浮动

.fd{
	width: 200px;
	height: 200px;
	background: red;
	margin: auto;
	float: left;
}

这是左浮动复习浮动
好了完成

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-03-08
  • 2022-12-23
  • 2022-03-10
  • 2021-11-02
  • 2021-12-12
  • 2021-11-27
猜你喜欢
  • 2021-07-17
  • 2021-04-20
  • 2021-09-02
  • 2021-11-21
  • 2021-11-22
  • 2022-01-06
  • 2021-12-19
相关资源
相似解决方案