亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

Bootstrap:為什么我的 col-md-6 不工作?

Bootstrap:為什么我的 col-md-6 不工作?

森欄 2023-10-10 15:08:42
我的網站有一點問題。我想要一個使用 Bootstrap 的響應式網站。在我的移動版本中,兩列需要彼此重疊,現在是正確的。但是,在我的桌面版本上,各列需要彼此相鄰。我認為 col-md-6 是執行此操作的正確方法,但是出了問題...任何人都可以向我解釋我做錯了什么。?body {  padding: 0;  margin: 0;  background: #f2f6e9;  padding-left: 20px;}.clearfix:after {  content: ".";  display: block;  height: 0;  clear: both;  visibility: hidden;}.container {  margin-top: 20px;  font-family: 'Roboto', sans-serif;}.content {  margin-top: 30px;}.tekstgeel{  color: #d7a32d;}.tekstgroen{  color: #4a7b45;}.bold {  font-weight: bold;}.lijngeel{  height:4px;  width: 50px;  background-color: #d7a32d;  float: left;  margin-top: 10px;}img {  width: 100%;}.titel {  font-size: 15px;  text-transform: uppercase;  line-height: 18px;}p {  font-size: 12px;}#profielfoto {  width: 75%;  margin-top: 15px;  margin-bottom: 40px;}.titel {  font-size: 15px;  text-transform: uppercase;  line-height: 18px;}.ondertitel {  font-size: 13px;  text-transform: uppercase;  line-height: 16px;  margin-top: 15px;  margin-bottom: 15px;}@media only screen and (min-device-width: 768px) {.titel {  font-size: 20px;  line-height: 23px;}.col-md-6 {  border:1px solid black;}}
查看完整描述

1 回答

?
回首憶惘然

TA貢獻1847條經驗 獲得超11個贊

請div row class在 之間添加two div columns。


<div class="row">

      <div class="col-md-12">

         <div class="row">

            <div class="col-sm-12 col-md-6">

           </div>

        </div>

     </div>

</div>


查看完整回答
反對 回復 2023-10-10
  • 1 回答
  • 0 關注
  • 120 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號