css实现海底自定义深度分类下拉选择框代码

代码语言:html

所属分类:布局界面

代码描述:css实现海底自定义深度分类下拉选择框代码

代码标签: css 海底 自定义 深度 分类 下拉 选择框 代码

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  

  
  
<style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #00bcd4, #009fb4, #008394, #006876, #004f5a, #00363e, #001f25, #000000);
  font-family: 'Inter', system-ui, sans-serif;
  padding: 3rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
}

.ocean-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 60vh;
}

.depth-gauge {
  position: absolute;
  left: -100px;
  top: 120px;
  height: 500px;
  width: 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 0;
}

.gauge-line {
  position: absolute;
  right: 20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(0, 188, 212, 0.5) 0%, rgba(0, 151, 167, 0.4) 20%, rgba(0, 131, 143, 0.35) 30%, rgba(0, 96, 100, 0.25) 50%, rgba(0, 77, 92, 0.15) 70%, rgba(0, 13, 20, 0.05) 100%);
}

.gauge-markers {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  position: relative;
}

.gauge-marker {
  display: flex;
  align-items: center;
  g.........完整代码请登录后点击上方下载按钮下载查看

网友评论0