mo.js实现炫酷的待办事项记事本效果代码
代码语言:html
所属分类:其他
代码描述:mo.js实现炫酷的待办事项记事本效果代码,可以添加事项、勾选是否完成或删除。
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
margin: 0;
padding: 0;
border: 0;
vertical-align: baseline
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
display: block
}
body,
html {
width: 100%;
height: 100%
}
body {
-webkit-font-smoothing: antialiased;
-moz-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-text-size-adjust: none;
margin: 0;
padding: 0;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif
}
ol,
ul {
list-style: none
}
hr {
border: 0;
height: 1px;
background: #ccc
}
blockquote,
q {
quotes: none
}
blockquote:before,
blockquote:after,
q:before,
q:after {
content: '';
content: none
}
table {
border-collapse: collapse;
border-spacing: 0
}
* {
margin: 0;
padding: 0;
list-style: none;
box-sizing: border-box
}
html,
input,
select,
textarea,
button,
a {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0)
}
body{
background: rgb(228, 228, 228);
padding: 20px 0 0 0;
}
div.wrapper {
background: #a99a92;
margin: 0px auto auto auto;
border-radius: 20px;
box-shadow: 0 6px 30px 18px rgba(199, 199, 199, 0.75);
transition: transform 0.3s ease-in;
}
div.wrapper:hover{
transform: scale(1.01);
}
@media only screen and (min-width: 800px){
div.wrapper{
width: 45%;
height: 95%;
}
}
@media only screen and (min-width: 900px){
div.wrapper{
width: 40%;
height: 95%;
}
}
@media only screen and (min-width: 1100px){
div.wrapper{
width: 35%;
height: 95%;
}
}
header{
width:100%;
height: 80px;
position: relative;
top:0; /* needed to keep on top */
bottom:0;
padding:15px;
z-index: 5;
background: #b43f3f;
border-bottom-right-radius: 10px;
border-bottom-left-radius: 10px;
box-shadow: 0 2px 8px rgba(41, 10, 77,.5);
}
header input{
font-family: Arial;
width: 100%;
font-size: 1rem;
height:50px;
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
border-top-right-radius: 25px;
border-bottom-right-radius: 25px;
float:left;
padding-right: 70px;
box-sizing: border-box;
background: rgba(255,255,255,0.2);
border:none;
color:#fdfdfd;
text-indent: 2%;
outline:none;
-webkit-appearance:none;
-moz-appearance:none;
-ms-appearance:none;
-o-appearance:none;
appearance:none;
transition: all 0.5s ease;
}
header input:focus{
background: rgba(35, 14, 87, 0.5);
}
header input::-moz-placeholder{
color:white;
}
header div#animationDiv{ /*being used for mojs animation*/
height: 50px;
position: absolute;
right: 15px;
width: 50px;
}
header button{
width:50px;
height: 50px;
position: absolute;
/*top: 15px; optional, it is so by default and right not needed as applied on parent! :D */
border:0px;
outline: 0px;
border-color:transparent;
outline-style: 0px;
border-radius: 50%;
background: white;
cursor:pointer;
z-index: 1; /*to ensure its .........完整代码请登录后点击上方下载按钮下载查看
















网友评论0