简体   繁体   English

如何在响应式网站中创建一条连接两个图像的行?

[英]How to create a line that conect two images in responsive website?

在此处输入图片说明 Anyone knows how this can be acomplished? 有人知道如何实现吗?

The website is using bootstrap 4 and the lines must be able to disapear in extra small screens. 该网站正在使用引导程序4,并且这些行必须能够在超小屏幕上消失。

This should help.... 这应该有所帮助。

http://codepen.io/pranesh-r/pen/xEOAOm http://codepen.io/pranesh-r/pen/xEOAOm

Replace the div.circle with your image.. 用图片替换div.circle

If the final result will be like your sketch, you can try to think these lines as borders of simple div, and the CSS will be something like 如果最终结果像您的草图一样,您可以尝试将这些线条视为简单div的边界,而CSS则类似于

.div-top{
  width: 100% /*resize this to adapt it*/
  height: 20px; /*give correct value*/
  border-bottom: 1px solid black; /*for example*/
  border-left: 1px solid black; /*for example*/
}
.div-bottom{
  width: 100% /*resize this to adapt it*/
  height: 20px; /*give correct value*/
  border-right: 1px solid black; /*for example*/
}

You can follow these examples and build all the lines you need. 您可以按照以下示例构建所需的所有行。 The HTML code must be like this HTML代码必须是这样的

<div class="div-top"></div>
<div class="div-bottom"></div>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM