1.宽高均为100px的div,在页面上怎么实现上下左右都居中
1、用定位,
position:absolute;
top:50%;
left:50%;
margin-top:-50px;
margin-left:-50px;
2、使用translate()
position: fixed;
top: 50%;
left: 50%;
background-color: #000;
width:50%;
height: 50%;
transform: translateX(-50%) translateY(-50%);
2.两个页面实现参数传递的方法
1. 放在localhost里面
2. 拼接在url后面,用?隔开
3. 使用window.name传递
3. 怎么遍历对象
for(key in object)
原文:https://www.cnblogs.com/liu-qimeng/p/10690435.html