您好,欢迎来到珍品美食网。
搜索
您的当前位置:首页介绍html中定位fixed的实例代码

介绍html中定位fixed的实例代码

来源:珍品美食网


$velocityCount-->

本篇文章主要介绍了html中定位fixed实例代码,对于html教程有兴趣的同学可以参考一下。

<html>
	<head>
	<title>123</title>
	<style>
	#sub1{
	width:50px;
	height:80px;
	border:1px solid #dcdcdc;
	}
	#sub2{
	position:fixed;
	top:250px;
	right:20px;
	width:50px;
	height:80px;
	border:1px solid #dcdcdc;
	margin-top:5px;
	}
	#sub3{
	width:250px;
	height:880px;
	border:1px solid #dcdcdc;
	margin-top:5px;
	}
	</style>
	</head>
	<body>
	<p id="parent">
	 <p id="sub1">sub1</p>
	 <p id="sub2">sub2</p>
	 <p id="sub3">sub1</p>
	</p>
	</body>
</html>

Copyright © 2019- zpxd.cn 版权所有

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务