Draw an arrow between two divs

后端 未结 5 890
不思量自难忘°
不思量自难忘° 2021-01-31 02:45

I\'m searching for a solution of the question that I expected to be solved already. But I saw only big projects with a lot of features but no simple solution.

Actually I

5条回答
  •  清歌不尽
    2021-01-31 03:22

    I have no idea whether anybody looks at this thread anymore but here's the solution i used, it differs only slightly from @markE answer in that this answer makes it much easier to specify exactly where the line needs to start and stop.

    
      
    
    
    
      
        
            
                
            
        
        
        
      
    
    
    

    All you have to do is change the x and y coordinates of the line! I used this answer in my react app and it worked beautifully. And heres the fiddle.

    .arrow {
      stroke: rgb(0, 0, 0);
      stroke-width: 2;
      marker-end: url(#markerArrow)
    }
    
      
        
          
        
      
      
    

提交回复
热议问题