译自英语
这会改变搜索栏的文字
<style>
#search-input {
font-family: 'American Typewriter'; !important;
font-size: 1rem !important;
font-weight: normal;
caret-color: #000;
transition: color 600ms ease, caret-color 600ms ease;
}
/* 让原始占位符文本不可见 */
#search-input::placeholder {
opacity: 0;
}
/* 新的占位符文本 */
.search-input:after {
content: "渴望被爱?点我!";
font-family: 'American Typewriter';
font-size: 1rem;
font-weight: normal;
position: absolute;
max-width: 68%; /* 在较小设备上才明显 */
top: 50%;
transform: translateY(-50%);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis; /* 文字过长时添加省略号,而不是生硬截断 */
pointer-events: none;
transition: color 600ms ease, opacity 300ms ease; /* 如果你不希望占位符文本轻微淡入/淡出,请删除这里的 opacity 过渡 */
}
/* 默认隐藏输入的文本 */
#search-input,
.css-bar9lc:focus-within .search-input:after,
.search-input:has(#search-input:not(:placeholder-shown)):after {
opacity: 0;
}
/* 当搜索栏内有文本或被点击时,让输入的文本可见 */
.css-bar9lc:focus-within #search-input,
.search-input:has(#search-input:not(:placeholder-shown)) #search-input {
opacity: 1;
}
.search-input {
position: relative;
overflow: hidden;
border-radius: 2px;
transition: background-color 600ms ease;
}
</style>
这会改变你个人头像的宽度和高度
<style>
.css-18bnokj {
Width: 500px;
height: 500px;
</style>
已创建 2025年6月11日
已更新 2025年6月11日
已发布 2025年6月11日