css实现简洁弹出层弹出框效果代码
代码语言:html
所属分类:弹出层
代码描述:css实现简洁弹出层弹出框效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body { margin: 0; padding: 0; font: 100%/1.4 sans-serif; color: #1f063b; } .demo-container { height: 100vh; display: flex; align-items: center; justify-content: center; /* End center */ background: linear-gradient(90deg, #ff8c8f 0%, #a8188d 51%, #370b69 100%); } .demo-container a { color: #1f063b; display: block; text-decoration: none; padding: 1em 2em; background-color: white; border: 1px solid #1f063b; border-radius: 4px; text-transform: uppercase; } .demo-container a:hover { text-decoration: underline; } .css-only-modal { visibility: hidden; opacity: 0; position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; background: rgba(77, 77, 77, 0.7); transition: all 0.4s; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0