模仿iphone苹果手机浏览器Safari 多选项卡效果
代码语言:html
所属分类:视觉差异
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> .fake-text { width: 80%; height: 6px; background-color: rgba(220, 216, 216, 0.6); margin: 4px 0; border-radius: 8px; } .fake-text-gap { margin-bottom: 8px; } .fake-picture { width: 100%; height: 40%; background-color: rgba(220, 216, 216, 0.6); margin: 16px 0; border-radius: 12px; } .fake-list { font-size: 14px; margin: 16px 0; } .list-bullet-ul, .list-bullet-ol { margin-bottom: 8px; display: grid; grid-gap: 4px; grid-auto-flow: row; grid-template-columns: 20px 1fr; justify-content: center; align-items: center; } .list-bullet-ul > div:nth-of-type(1) { width: 6px; height: 6px; border-radius: 50%; background-color: rgba(220, 216, 216, 0.6); margin: 0 8px; } .list-bullet-ol > div:nth-of-type(1) { color: rgba(220, 216, 216, 0.6); font-size: 12px; text-align: center; margin-left: 2px; } .fake-list-item { width: 60%; height: 6px; background-color: rgba(220, 216, 216, 0.6); border-radius: 8px; } .fake-grid { margin: 16px 0; display: grid; grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-gap: 8px; } .fake-grid > div { height: 60px; background-color: rgba(220, 216, 216, 0.6); border-radius: 8px; } :root { --bottom-controls-bgc: rgb(58, 58, 58); --bottom-controls-fgc: rgb(71, 148, 242); } body { margin: 0; background-color: black; overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; } .display-wrapper { position: absolute; top: 0; left: 0; transform-origin: 0px 0px; } .the-display { overflow: hidden; position: relative; } .browser-tab-normal { box-sizing: border-box; transition: transform 0.4s ease-out; transform-origin: 50% 50%; position: absolute; top: 0; left: 0; } .bottom-control-panel { height: 65px; background-color: var(--bottom-controls-bgc); position: fixed; z-index: 1000; display: flex; justify-content: center; align-items: center; } .bt-panel-tab, .bt-panel-menu { width: calc(100% - 32px); height: 100%; display: flex; position: absolute; top: 0; left: 16px; align-items: center; justify-content: space-between; flex-direction: row-reverse; transition: opacity 400ms linear; } .bottom-control-button { width: 35px; height: 35px; padding: 0; background-color: transparent; border: none; outline: none; user-select: none; position: relative; /* background-color: lightpink; */ /* filter: drop-shadow(0px 0px 3px var(--bottom-controls-fgc)); */ } .bottom-menu-text { color: white; cursor: pointer; font-size: 14px; } .tab-closer { position: sticky; top: 0; left: 0; width: 100%; height: 20px; background-color: rgba(100, 100, 100, 1); transition: opacity 200ms ease-in-out; display: flex; justify-content: center; align-items: center; } .tab-closer-button { width: 12px; height: 12px; position: absolute; top: 4px; left: 4px; background-color: transparent; border: none; } .content-container { padding: 16px; box-sizing: border-box; } .tab-title { col.........完整代码请登录后点击上方下载按钮下载查看
网友评论0