Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/82.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 引导程序5-导航中的中心搜索框_Html_Css_Twitter Bootstrap - Fatal编程技术网

Html 引导程序5-导航中的中心搜索框

Html 引导程序5-导航中的中心搜索框,html,css,twitter-bootstrap,Html,Css,Twitter Bootstrap,我正在使用bootstrap 5,并希望将搜索框置于导航栏的中心 我尝试了以下方法: #基础知识{ 文本对齐:居中; } 搜寻 报名 我想这会奏效的,祝你好运 #the-basics { text-align: center; } ::-webkit-input-placeholder { text-align: center; } :-moz-placeholder { text-align: center; } 我想这会管用的,祝你好运 #the-basics {

我正在使用bootstrap 5,并希望将搜索框置于导航栏的中心

我尝试了以下方法:

#基础知识{
文本对齐:居中;
}

搜寻 报名
我想这会奏效的,祝你好运

#the-basics {
  text-align: center;
}
::-webkit-input-placeholder {
  text-align: center;
}

:-moz-placeholder {
  text-align: center;
}


我想这会管用的,祝你好运

#the-basics {
  text-align: center;
}
::-webkit-input-placeholder {
  text-align: center;
}

:-moz-placeholder {
  text-align: center;
}