父元素position:fixed寫了一個遮罩層,里面的子元素審查元素位置錯亂,在超出這個元素的位置還能定位到這個元素<div style = {styles.toolstip}><div style = {styles.case}><div style = {styles.title}>直播平臺授權</div></div></div>.toolstip {position: fixed;left: 0;right: 0;bottom: 0;top: 0;width: 100%;background-color: rgba(0,0,0, 0.3);display: flex;justify-content: center;align-items: center;}.case {width: 602;height: 485;background-color: #fff;border-radius: 20;}.title {width: 100%;height: 95;line-height: 95;text-align: center;font-size: 28;color: #5e57ff;border-bottom: 1px solid #ccc;}瀏覽器審查元素的時候 .title元素錯位, 但是子元素去掉居中樣式以后審查元素又正常了
- 1 回答
- 0 關注
- 818 瀏覽
添加回答
舉報
0/150
提交
取消