<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Button Hover 效果1</title>
<link rel="stylesheet" href="font-awesome-4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<style>
* {
margin: 0;
padding: 0;
}
html,body {
width: 100%;
height: 100%;
font-size:62.5%; /*16px -- 10px*/
line-height: 1.5;
background: #f3f8fa;
display: flex;
justify-content: center;
align-items: center;
}
button {
position: relative;
display: inline-block;
cursor: pointer;
outline: none;
border:
css3 一个button hover 效果
最新推荐文章于 2023-12-21 21:57:59 发布
本文详细介绍了如何使用CSS3来创建一个具有丰富动画效果的button悬停效果,包括渐变色、边框变形、阴影变化等技巧,让你的网页交互更生动。
摘要由CSDN通过智能技术生成