在css中造型子弹点

时间:2016-03-24 16:55:05

标签: html css html5 css3

好吧这可能是一个愚蠢的问题,但我对这个子弹点造型很生气。 我想让它看起来像这样:

    set @cols = (select group_concat(column_name) as 'col_list' FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE (`TABLE_SCHEMA` = 'REPORTS' AND `TABLE_NAME` = 't_labor' AND column_name like '%host%'));

set @qry = concat('select ', @cols, ' from REPORTS.t_labor');

PREPARE stmt1 FROM @qry;

EXECUTE stmt1;

DEALLOCATE PREPARE stmt1;

使用此标记

 - Coffee                        - Milk                   - Milk
 - Coffee                        - Milk                   - Milk
 - Coffee                        - Milk                   - Milk

4 个答案:

答案 0 :(得分:1)

像这样,使用inline-block

li {
  display: inline-block;
  margin: 0;
  width: 30%;
}
<ul>
  <li>Coffee</li>
   <li>Milk</li>
  <li>Milk</li>
</ul>

<ul>
  <li>Coffee</li>
  <li>Milk</li>
  <li>Milk</li>
</ul>

<ul>
  <li>Coffee</li>
  <li>Milk</li>
  <li>Milk</li>
</ul>

可以使用flex

完成

ul {
  display: flex;
}
li {
  width: 33%;
}
<ul>
  <li>Coffee</li>
   <li>Milk</li>
  <li>Milk</li>
</ul>

<ul>
  <li>Coffee</li>
  <li>Milk</li>
  <li>Milk</li>
</ul>

<ul>
  <li>Coffee</li>
  <li>Milk</li>
  <li>Milk</li>
</ul>

答案 1 :(得分:1)

请试试这个:

li {
  display: inline-block;
  margin: 0;
  width: 30%;
}
li:before {
content: "-";
}

答案 2 :(得分:0)

ul {
  float:left;
  }
<ul>
  <li>Coffee</li>
   <li>Milk</li>
  <li>Milk</li>
</ul>

<ul>
  <li>Coffee</li>
  <li>Milk</li>
  <li>Milk</li>
</ul>

<ul>
  <li>Coffee</li>
  <li>Milk</li>
  <li>Milk</li>
</ul>

喜欢这个吗?

答案 3 :(得分:0)

li {
  display: inline-block;
  width: 33%;
  margin: 0;
}    
ul {
  list-style-image: url(images/bullet.png);
}

这是一种简单的方法。