<html>
<head>
<style type="text/css">
input:focus {
border: 2px solid #f00;
}
</style>
</head>
<body>
<input type="text" class="text"/>
</body>
</html>
输入框input获得焦点后边框加亮代码
最新推荐文章于 2023-11-28 11:23:11 发布
<html>
<head>
<style type="text/css">
input:focus {
border: 2px solid #f00;
}
</style>
</head>
<body>
<input type="text" class="text"/>
</body>
</html>