Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/80.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在html中的输入占位符中放置图标?_Html_Css - Fatal编程技术网

如何在html中的输入占位符中放置图标?

如何在html中的输入占位符中放置图标?,html,css,Html,Css,我被困了一个小时,关于这个主题的问题似乎已经过时了,希望我能正确地理解你 。中间内容\u博客\u内容\u块\u搜索\u编辑{ 位置:相对位置; 背景:url(https://www.pinpng.com/pngs/m/290-2908373_instagram-search-icon-gray-small-search-icon-png.png); 背景重复:无重复; 背景位置:100%居中; 背景尺寸:包含; 宽度:100%; 高度:50px; 字体大小:16px; 边框:1px实心#878

我被困了一个小时,关于这个主题的问题似乎已经过时了,希望我能正确地理解你

。中间内容\u博客\u内容\u块\u搜索\u编辑{
位置:相对位置;
背景:url(https://www.pinpng.com/pngs/m/290-2908373_instagram-search-icon-gray-small-search-icon-png.png);
背景重复:无重复;
背景位置:100%居中;
背景尺寸:包含;
宽度:100%;
高度:50px;
字体大小:16px;
边框:1px实心#878787;
框大小:边框框;
边界半径:30px;
大纲:无;
填充:0 45px 0 20px;
利润率:15px0;
}

嗨,菜鸟,欢迎来到SO!如果你想让SO的ppl帮你解决问题,你需要发布一份你迄今为止为解决问题所做工作的清单。此外,请检查以下答案: