css实现多节点连线拖拽移动代码
代码语言:html
所属分类:拖放
代码描述:css实现多节点连线拖拽移动代码,chrome浏览器专用
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
.link {
--b: 8px; /* line thickness */
--s: 50px; /* the box sizes */
--d: 120px; /* control the curvature */
pointer-events: none;
--x: attr(x type(<custom-ident>));
--y: attr(y type(<custom-ident>));
}
.link * {
position: absolute;
--_x: calc(anchor(var(--x) inside) + anchor-size(var(--x))/2 - .1px);
--_y: calc(anchor(var(--y) inside) + anchor-size(var(--y))/2);
container-type: size;
}
.link :is(a,b) {top: var(--_x); botto.........完整代码请登录后点击上方下载按钮下载查看















网友评论0