我刚刚使用响应式模板(meet-gavern)创建了我的第一个网页。我非常喜欢它..。但是从我的iPhone上看到的响应式菜单关闭(消失)太快了。我是网页设计的初学者,对编程一无所知。它一定是一些快速修复,但我不知道从哪里开始...有什么需要帮忙的吗?网址: lasrejasopenclub.com
发布于 2014-04-03 06:04:34
在您的样式表中有一些代码可以创建这种转换。在“bootstrap.css”中,参见第2489行:将transition: height .35s ease;
属性应用于.collapse
类。
如果将.35s
更改为更大的数字,菜单将不会很快消失。尝试使用1s
查看它需要1秒。
注意:与直接编辑“bootstrap.css”不同,您可能只想在自己的CSS文件中包含此规则:
.collapse {
-webkit-transition: height 1s ease;
-moz-transition: height 1s ease;
-o-transition: height 1s ease;
transition: height 1s ease;
}
显然,你可以使用不同的数字和轻松属性来获得你想要的结果。但这是开始的地方。(在此处了解有关过渡的更多信息:http://www.w3schools.com/css/css3_transitions.asp)
https://stackoverflow.com/questions/22822517
复制相似问题