【问题标题】:css picture alignment for my website我的网站的 css 图片对齐
【发布时间】:2015-08-24 22:47:52
【问题描述】:

大家好,我正在尝试将我的照片链接与我的图像转换器对齐,请查看我的网站https://www.tagadoor.com/converter/ 你会看到油画在浮雕两个链接的顶部,这是我的 css

 <style>
.header {width: 98.6%;}
.pdf{border-radius : 11px;}
.pdf{height : 37px; width : 183px;}
.pdf{vertical-align : top; margin : 18px;}
.pdf{font-style: oblique; font-size: 80%; font-weight: bold;}
.pdf{cursor: pointer;}
.piper{
width: 170px;
}
div.pipy {
display: inline-block;
  -moz-column-count: 3;
  -webkit-column-count: 3;
   colum: 3;
  -webkit-column-gap: 43px;
  -moz-column-gap: 43px;
   column-gap: 43px;
}
div.pipy{
margin-top: 33px;

}

span {font-style: italic;}
 </style>

另外,请告诉我您可能有的任何建议,如果您想测试一下,所有转换器都可以工作。非常感谢您对此进行调查。

【问题讨论】:

    标签: css image alignment photo


    【解决方案1】:

    HTML5 引入了“figures”和“figcaptions”。通过将图像和“figcaption”包装在“figure”标签中,您可以将它们放在一起。我喜欢这种方法,因为它很干净并且不需要任何 CSS。 https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figure

    【讨论】:

    • 谢谢您查看我的网站只是为了确认?
    • 我做到了。这是我实现它的方式,尽管您可能希望 标记仅适用于图像? tagadoor.com/background">
      tagadoor.com/pictures/uploads/taga3.png" alt="">
      背景
    • 谢谢你给我更多的问题,但它会起作用的,谢谢!!!!您是否碰巧转换了几张照片?
    • 我以前没有 - 但我只是试了一下。这太酷了,伙计!我做了一个PDF,它做了第二页;我猜它不知道我想要哪个页面? PNG -> JPEG 效果非常好。
    • 花了很多编码才能得到这样的结果,但它有效我只是想用 css 来解决......
    猜你喜欢
    • 2015-02-28
    • 1970-01-01
    • 2016-10-07
    • 1970-01-01
    • 2020-09-09
    • 2014-07-29
    • 2016-07-05
    • 1970-01-01
    • 2018-12-26
    相关资源
    最近更新 更多