1

I have a basic AMP page with an amp iframe and a few amp images

https://www.freshcottages.com/region/cambridgeshire.htm

When you click the main menu item, say "England", the menu appears behind the AMP iframe and AMP images.

Is there any way to stop this? I've tried playing with z-index but not had any success.

If the items are turned into standard iframe and img elements then they work fine so it just looks like its the AMP framework that's throwing it off

4

1 回答 1

2

您需要向元素添加position: relative一个z-index大于零的值,这应该可以解决您的问题。nav

于 2017-04-20T11:54:27.517 回答