📝 代码查看
使用runcode.html页面

2
查看次数
2025-12-01
创建时间
2025-12-01
最后更新
<input type="text" class="search-field"/>
.search-field {
	border: 2px solid #DDD;
	cursor: pointer;
	height: 37px;
	margin: 3px 0;
	padding: 0 0 0 40px;
	position: relative;
	transition: width 400ms ease, background 400ms ease;
	width: 0;
	background:url(/d/file/computer/programme/html_div_css/2025-12-01/9b6b71f45704e4c6ee4df983ae25bbcf.jpg) no-repeat 12px center;
}
.search-field:focus {
	background-color: #fff;
	border: 2px solid #c3c0ab;
	cursor: text;
	outline: 0;
	width: 230px;
}
暂无JavaScript代码

👁️ 实时预览