表单获取焦点效果

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
input {
outline: none;
/*过渡效果*/
transition: all 1s;
}
input:focus {
font-weight:bold;">pink;
border: 1px solid red;
height: 30px;
}
</style>

</head>
<body>
<input type="text" name="" id="">
</body>
</html>
posted @ 2020-05-20 17:24  EricBlog  阅读(505)  评论(0编辑  收藏  举报