将class属性添加到<button>标签中,class属性值为"button"。
你的设计应该应用到按钮本身,而不是div容器。
实际上,您正在为 div 添加样式,如果您想为按钮添加样式,请将类名添加到按钮 <button className='button'>联系</button>
<button className='button'>联系</button>
将class属性添加到<button>标签中,class属性值为"button"。
你的设计应该应用到按钮本身,而不是div容器。
实际上,您正在为 div 添加样式,如果您想为按钮添加样式,请将类名添加到按钮
<button className='button'>联系</button>