<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
/* 清除默认样式 */
body{
margin: 0;
padding: 0;
}
a{
text-decoration: none;
color: #333;
font-size: 12px;
}
/* 具体样式 */
.box{
border: 1px solid #eaeaea;
position: fixed;
right: 30px;
top: 100px;
}
a
css中固定定位fixed,侧边栏小案例
最新推荐文章于 2023-07-18 16:31:54 发布