css实现各种鼠标悬浮文字图标按钮显示提示文字效果代码

代码语言:html

所属分类:悬停

代码描述:css实现各种鼠标悬浮文字图标按钮显示提示文字效果代码

代码标签: css 各种 鼠标 悬浮 文字 图标 按钮 显示 提示 文字

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

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

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

  
  <link rel='stylesheet' href='https://fonts.googleapis.com/css2?family=Honk:MORF@15&amp;display=swap'>
  
<style>
@import url ('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300&family=DM+Sans:wght@300;400;500;600&display=swap')

*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

:root {
	--bg: #0d0d0d;
	--surface: #161616;
	--border: #2a2a2a;
	--text: #e8e8e8;
	--muted: #666;
	--accent: #e8ff47;
	--accent-dim: rgba(232, 255, 71, 0.12);
	--tip-bg: #1e1e1e;
	--tip-text: #f0f0f0;
	--tip-border: #333;
	--radius: 70px;
	--radius1: 15px;
}

body {
	background: var(--bg);
	color: var(--text);
	font-family: 'DM Sans', sans-serif;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 60px 24px;
	gap: 64px;
}

header {
	text-align: center;
}

header h1 {
	font-family: 'DM Mono', monospace;
	font-weight: 400;
	font-size: clamp(1.1rem, 3vw, 1.5rem);
	letter-spacing: 0.08em;
	color: var(--accent);
}

header p {
	margin-top: 10px;
	font-size: 0.85rem;
	color: var(--muted);
	font-weight: 200;
}

.section {
	width: 100%;
	max-width.........完整代码请登录后点击上方下载按钮下载查看

网友评论0