Welcome to MLink Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
285 views
in Technique[技术] by (71.8m points)

html - Bootstrap Collapse Item Misaligned only on IOS Devices

I'm using Bootstrap 5.0 to make a responsive wep page. Using Collapse item to display links after on click to main element. It'is working properly all devices and all resolutions except on IOS devices regardless of the browser type. Collapse item becomes misalign with main element. Thanks for your support in advance.

On Android enter image description here

On IOS 14.2

enter image description here

CSS

main-div{
 position: relative;
}

main-element{
position: absolute;
}

collapse-item {

/* position is not set */
}

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to MLink Developer Q&A Community for programmer and developer-Open, Learning and Share
...