我正在这个站点 ( https://stagetoday.squarespace.com/ ) 上工作,但我需要在 css 中为断点 1218px 编写一个媒体查询。
当我超过这个宽度时,我的网站副标题会跳到我的菜单项下方,但它必须保持在菜单项上方。
我已经有一个针对 640px 断点的媒体查询,所有内容都在中心对齐,这没问题,但在 640px 和 1218px 之间,右边的菜单不是我想要的。
谁能帮我解决这个媒体查询问题?
最佳答案
将 #navigator .logo-subtitle
的 width:80% !important
更改为 width:auto !important
。
#navigator .logo-subtitle{
width:80% !important; // remove this and add the below style
width:auto !important;
}
关于css - 媒体查询断点 1218px,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22530813/