css 阴影编辑器
代码语言:html
所属分类:布局界面
代码描述:css 阴影编辑器
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
@import url('https://fonts.googleapis.com/css?family=Montserrat');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Montserrat', sans-serif;
background-color: #f4f4f4;
color: #111;
}
h1 {
text-align: center;
font-size: 2.5rem;
margin: 2rem 0;
}
/* Box Container */
.box-container {
background-color: #fff;
min-height: 50vh;
width: 90%;
margin: 0 auto;
border: 1px solid #ccc;
/* overflow: hidden; */
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
#box {
width: 300px;
height: 300px;
margin: 160px;
background-color: #40739e;
box-shadow: 10px 10px 5px 0px rgba(0, 0, 0, 0.25);
}
#box-container-colors {
position: absolute;
background-color: #fff;
color: #111;
border: 1px solid #ccc;
top: 1rem;
right: 1rem;
padding: 1rem;
}
#box-container-colors .input-block label {
margin-right: 3px;
}
#box-container-colors .input-block:first-child {
margin-bottom: 1rem;
}
/* Generated CSS Container */
.generated-css-container {
width: 50%;
margin: 1.5rem auto;
line-height: 2rem;
padding: 0.25rem 0.5rem;
border: 1px solid #ccc;
border-radius: 0.25rem;
background-color: #fff;
color: #111;
display: flex;
justify-content: space-between;
align-items: center;
}
#generated-css {
font-family: Consolas, monaco,monospace;
}
#generated-css-copy-btn {
cursor: pointer;
background-color: #111;
color: #fff;
border: none;
width: 5re.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0