[英]How to create a line that conect two images in responsive website?
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.