Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

1.2.6

Compare
Choose a tag to compare
@ljm12914 ljm12914 released this 26 Mar 06:45
· 16 commits to main since this release

把不易理解的tt()函数拆分为dom()函数与rect()函数,并且简化了数据获取过程。
dom()函数用法:
$.dom(element, "option")
option:m=margin,b=border,p=padding
横轴:"-"或"--":带元素本身的宽度
纵轴:"|"或"||":带元素本身的高度
获取元素横轴所有:mbp--pbm
纵轴:mbp||bpm
margin-leftm-
padding-topp|
border-bottom加本身高度:||b
border-leftpadding-rightb-p
以此类推(mbpbpm只是符合dom实际模型的写法,写pbmmpb一样能识别)