【问题标题】:How can I add 3 line in html?如何在 html 中添加 3 行?
【发布时间】:2019-05-11 07:29:09
【问题描述】:

如何在 HTML 中添加 3 行? 喜欢附上的照片

【问题讨论】:

标签: html cs-cart


【解决方案1】:

你可以像这样使用flexbox

.row {
  box-sizing: border-box;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 0;
  -ms-flex: 0 1 auto;
  flex: 0 1 auto;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -.5rem;
  margin-left: -.5rem;
}

.col {
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  -ms-flex-preferred-size: 0;
  flex-basis: 0;
  max-width: 100%;
}

.list {
  position:relative;
  display:block;
  padding:0;
}
.list li{
  position:relative;
  display:block;
  margin-bottom:5px;
  padding-left:15px;
}
.list li:before{
  content:'>';
  position:absolute;
  left:0;
}
<div class="row">
  <div class="col">
      <ul class="list">
         <li>Contact us</li>
         <li>about us</li>
      </ul>
  </div>
  <div class="col">
      <ul class="list">
         <li>Contact us</li>
         <li>about us</li>
      </ul>
  </div>
  <div class="col">column</div>
</div>

【讨论】:

  • 如何在旁边点赞联系我们
  • cadd add html only or we must use css cod
猜你喜欢
  • 2017-09-12
  • 1970-01-01
  • 2014-01-07
  • 2011-12-02
  • 2017-06-19
  • 2021-07-18
  • 2012-02-11
  • 2011-07-15
  • 1970-01-01
相关资源
最近更新 更多