基于css变量修改的tooltips效果
代码语言:html
所属分类:布局界面
代码描述:基于css变量修改的tooltips效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> @import url("https://fonts.googleapis.com/css?family=Roboto:400,500&display=swap"); body { display: grid; -webkit-box-align: center; align-items: center; background: #1b1f1b; min-height: 100vh; color: white; font-family: 'Roboto', 'Helvetica Neue', sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .content { display: grid; grid-gap: 1em; margin: 0 auto; width: 100%; max-width: 500px; padding: 1em; } .preview { display: grid; -webkit-box-align: center; align-items: center; -webkit-box-pack: center; justify-content: center; height: 300px; background: #4a6775; border-radius: 5px; margin-bottom: 1em; } .tooltip { padding: var(--padding) var(--padding) calc(var(--p.........完整代码请登录后点击上方下载按钮下载查看
网友评论0