css实现自适应居中弹出层效果代码
代码语言:html
所属分类:弹出层
代码描述:css实现自适应居中弹出层效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> * { box-sizing: border-box; } html, body { height: 100%; margin: 0; font-family: "Arial"; } body { display: flex; justify-content: center; align-items: center; background: #e8fffb; } button { transition: all ease 0.25s; } button:active { transform: scale(0.9); box-shadow: none; } button:focus { outline: 2px solid #00000080; } .button-modal { cursor: pointer; min-width: 200px; display: flex; justify-content: left; align-items: center; position: relative; border: none; border-radius: 8px; outline: none; color: #fff; background: #20332f; padding: 0; box-shadow: 0 4px 8px -4px #1b594e80; transition: all ease 0.5s; overflow: hidden; } .button-modal:hover .icon { width: 100%; } .button-modal:hover .text { right: -100%; } .button-modal .icon { width.........完整代码请登录后点击上方下载按钮下载查看
网友评论0