:OSM 위치 지도/cssline

위키백과, 우리 모두의 백과사전.

Creates a CSS div to draw a line between two points (x1,y1) and (x2,y2).

Other parameters are outline-width, outline-style and shape-outline which provide the line-width,css line style and line-color.

It works by calculating the centre-point, transform-angle and line-length needed and applies them to border-bottom. (Maths comes with thanks to ES.)