我有一行是列的集合,它在寬屏中正確顯示但在移動(dòng)屏幕中有問(wèn)題,我嘗試了 col-sm- 但它沒(méi)有用。請(qǐng)幫我解決這個(gè)問(wèn)題桌面視圖您是否可以在上圖中看到,同一行中的所有元素,但是當(dāng)切換到移動(dòng)設(shè)備時(shí),這些元素被分為 2 行MobileView。我希望該行在一行中自行調(diào)整我的代碼 <div className="row leaderBoard_main p-2 m-3"> <div className="col-1 leaderBoard_1"> <h4>1</h4> </div> <div className="col-1 leaderBoard_2"> <img className = "leadBoard_22" src="account.png" /> </div> <div className="col-8 leaderBoard_3"> <h4 className="">Username</h4> </div> <div className="col-2 leaderBoard_4"> <h4>10 Points</h4> </div> </div>CSS代碼.leaderBoard_main { background-color:#0092FF; border-radius: 10px;}.leaderBoard_1 { color: white; border-right: 5px solid white;}.leaderBoard_2 { color: white;}.leaderBoard_22 { width: 25px; height: 25px;}.leaderBoard_3 { color: white;}.leaderBoard_4 { color: white; border-left: 5px solid white;}
反應(yīng),無(wú)法使用引導(dǎo)程序使行響應(yīng)
飲歌長(zhǎng)嘯
2022-12-18 16:14:56