Skip to content

Commit

Permalink
悬浮菜单去除margin
Browse files Browse the repository at this point in the history
  • Loading branch information
K-walker committed Sep 12, 2017
1 parent e7c74f7 commit ef4c20c
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 60 deletions.
30 changes: 15 additions & 15 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 41 additions & 3 deletions css/frame.css
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,6 @@
float: left;
width: 100%;
}
.pl-48 {
padding-left: 48px;
}

.left .menu li .box:hover {
background: #000000;
Expand Down Expand Up @@ -256,6 +253,47 @@
padding-right: 5px;
}

.float-menu {
position: fixed !important;
color: #ffffff;
padding-left: 10px;
z-index: 1;
}

.float-arrow {
border-left: 5px solid transparent;
border-right: 5px solid #232323;
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
position: absolute;
left: 0px;
top: 15px;
}

.float-menu ul {
background: #232323;
border-radius: 4px;
padding: 2px;
}
.float-menu ul li {
width: auto !important;
padding: 0 10px;
line-height: 40px;
float: none !important;
}
.float-menu ul li:hover {
background: #434343;
cursor: pointer;
}
.float-menu ul li i {
float: right;
font-size: 12px;
margin-top: 19px;
color: #ddd;
}
.float-menu ul li:hover i {
color:#ffffff;
}
/****========帧动画=======****/
@-webkit-keyframes IconRotate {
from { -webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0deg);}
Expand Down
42 changes: 0 additions & 42 deletions frame.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,48 +5,6 @@
<title>主框架</title>
<link rel="stylesheet" type="text/css" href="css/common.css">
<link rel="stylesheet" type="text/css" href="css/frame.css">
<style>

.float-menu {
position: fixed !important;
color: #ffffff;
padding-left: 10px;
z-index: 1;
}
.float-arrow {
border-left: 5px solid transparent;
border-right: 5px solid #232323;
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
position: absolute;
left: 0px;
top: 15px;
}
.float-menu ul {
background: #232323;
border-radius: 4px;
}
.float-menu ul li {
width: auto !important;
padding: 0 10px;
line-height: 40px;
margin: 2px;
float: none !important;
}
.float-menu ul li:hover {
background: #434343;
cursor: pointer;
}
.float-menu ul li i {
float: right;
font-size: 12px;
margin-top: 19px;
color: #ddd;
}
.float-menu ul li:hover i {
color:#ffffff;
}
</style>
</head>
<body>
<div class="main">
Expand Down

0 comments on commit ef4c20c

Please sign in to comment.