css实现立体清爽阴影按钮输入框效果代码
代码语言:html
所属分类:表单美化
代码描述:css实现立体清爽阴影按钮输入框效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> html { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; padding-top: 40px; background-color: #F7F9FC; } button { cursor: pointer; outline: 0; margin-left: 20px; -webkit-transition: all 0.3s; transition: all 0.2s; -webkit-box-sizing: border-box; box-sizing: border-box; border: 0; padding: 0; } .Btn_blue_normal { width: 200px; height: 48px; background-image: -webkit-gradient( linear, left top, left bottom, color-stop(4%, #648cff), to(#4172fa) ); background-image: linear-gradient(-180deg, #648cff 4%, #4172fa 100%); border: 1px solid rgba(51, 100, 237, 0.35); -webkit-box-shadow: 0 3px 4px 0 rgba(44, 71, 146, 0.32), inset 0 -2px 0 0 #3262e6; box-shadow: 0 3px 4px 0 rgba(44, 71, 146, 0.32), inset 0 -2px 0 0 #3262e6; border-radius: 3px; margin-left: -; /* 了解客户案例: */ font-family: system, -apple-system, BlinkMacSystemFont; font-size: 13px; color: #ffffff; letter-spacing: 0.7px; text-align: center; line-height: 16px; } .Btn_blue_normal:hover { -webkit-box-shadow: 0 8px 20px 0 rgba(44, 71, 146, 0.4); box-shadow: 0 8px 20px 0 rgba(44, 71, 146, 0.4); border-radius: 3px; -webkit-transform: scale(1.02); transform: scale(1.01) translateY(-2px); /* transform: translateY(-3px); */ /* transform-origin: 50% 200%; transition: .3s transform cubic-bezier(0.4, 0, 0.2, 1) ; */ } .Btn_blue_normal:active { -webkit-box-shadow: 0 3px 4px 0 rgba(44, 71, 146, 0.32), inset 0 0px 0 0 #3262e6; box-shadow: 0 3px 4px 0 rgba(44, 71, 146, 0.32), inset 0 0px 0 0 #3262e6; background-image: -webkit-gradient( linear, left bottom, left top, from(#527ffc), color-stop(96%, #4172fa) ); background-image: linear-gradient(0deg, #527ffc 0%, #4172fa 96%); -webkit-transform: scale(0.98); transform: scale(1); /* transition: all 0.4s; */ } .Btn_white_normal { width: 160px; height: 48px; background-image: -webkit-gradient( linear, left top, left bottom, color-stop(8%, #ffffff), color-stop(97%, #f2f2f7) ); background-image: linear-gradient(-180deg, #ffffff 8%, #f2f2f7 97%); border: 1px solid hsla(220, 6%, 92%, 1); -webkit-box-shadow: 0 3px 4px 0 rgba(44, 71, 146, 0.32), inset 0 -2px 0 0 #e1e3e8; box-shadow: 0 3px 4px 0 rgba(44, 71, 146, 0.32), inset 0 -2px 0 0 #e1e3e8; border-radius: 3px; /* 立即注册: */ font-family: system, -apple-system, BlinkMacSystemFont; font-size: 13px; color: #3b426b; letter-spacing: 0.7px; text-align: center; line-height: 16px; font-weight: 700; } .Btn_white_normal:hover { -webkit-box-shadow: 0 8px 20px 0 rgba(44, 71, 146, 0.2); box-shadow: 0 8px 20px 0 rgba(44, 71, 146, 0.2); border: 1px solid #f3f3f8; -webkit-transform: scale(1.02); transform: scale(1.01) translateY(-2px); } .Btn_white_normal:active { -webkit-box-shadow: 0 3px 4px 0 rgba(44, 71, 146, 0.32), inset 0 0px 0 0 #e1e3e8; box-shadow: 0 3px 4px 0 rgba(44, 71, 146, 0.32), inset 0 0px 0 0 #e1e3e8; background-image: -webkit-gradient( linear, left bottom, left top, color-stop(3%, #f9f9fc), color-stop(92%, #f2f2f7) ); background-image: linear-gradient(0deg, #f9f9fc 3%, #f2f2f7 92%); border: 1px solid hsla(220, 6%, 92%, 1); -webkit-transform: scale(0.98); transform: scale(1); } /* .Btn_white_normal2::after { content:'chishi'; } .Btn_white_normal2::before { content:'chishi'; } */ .Btn_blue_normal_arrow { top:8px; right: 8px; position: absolute; width: 160px; height: 48px; margin: 0px; background-image: -webkit-gradient( linear, left top, left bottom, color-stop(4%, #648cff), to(#4172fa) ); background-image: linear-gradient(-180deg, #648cff 4%, #4172fa 100%); border: 1px solid rgba(51, 100, 237, 0.35); -webkit-box-shadow: 0 3px 4px 0 rgba(44, 71, 146, 0.32), inset 0 -2px 0 0 #3262e6; box-shadow: 0 3px 4px 0 rgba(44, 71, .........完整代码请登录后点击上方下载按钮下载查看
网友评论0