Arrow in Bottom of jQuery Dialog

后端 未结 3 1273
再見小時候
再見小時候 2021-01-18 16:02

I\'m using jQuery Dialog and i need to show an arrow tip on bottom center of jQuery Dialog like below.

3条回答
  •  逝去的感伤
    2021-01-18 16:40

    You could either use CSS3 to create a 45 degrees rotated squared or a png image with a rotated square int it.

    In both case you would place it in absolute position to stick it to the bottom.

    For the CSS3 option, use bottom: -Npx; where N is (side * sqrt(2) / 2) and same for the left:

    For the image option, use half the width/height instead of that calculation.

提交回复
热议问题