这是个老生常谈的小技巧, 圆弧的结构必须类似半径画弧的算法
例如第二个demo中的圆弧boder的宽度:
第一行: 2px 第二行: 1px 第三行: 1px 第四行: 1px,第五行: 1px (但是高度为2)
然后margin的宽度递减,依据boder的宽度来计算,对于具体的某行margin=totalmargin-boder
Code
实际使用中,设置class定义在css文件中.
例如第二个demo中的圆弧boder的宽度:
第一行: 2px 第二行: 1px 第三行: 1px 第四行: 1px,第五行: 1px (但是高度为2)
然后margin的宽度递减,依据boder的宽度来计算,对于具体的某行margin=totalmargin-boder
实际使用中,设置class定义在css文件中.
this is the title
this is a test this is the title
this is a test



div.div1
浙公网安备 33010602011771号