如何在链接内水平对齐图像?

时间:2016-04-24 19:49:24

标签: html css

我有一个开始评级,我想将图像水平对齐

我尝试过没有成功!



img#rating_line {
  display: inline;
  margin: 0 auto;
  clear: right;
}
#rating_line {
  height: 16px;
  display: inline;
  position: relative;
}
#rating_line a {
  height: 16px;
  display: inline;
  width: 400px
}

<div id="rating_line">
  <a href="/products/7/">
    <div class="feedback_stars_rating">
      <img src="/star-off.png">
      <img src="/star-off.png">
      <img src="/star-off.png">
    </div>
  </a>
<div>
&#13;
&#13;
&#13;

0 个答案:

没有答案