- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在构建一个移动网站,但遇到了一个奇怪的问题。页面横向滚动。不仅如此,标题似乎是固定的,内容似乎横向滚动。如果您查看此 page,问题将得到最好的理解
我尝试为 body、#search-page、#search-controls 设置最大、最小宽度。似乎没有任何效果。
#search-page #header.ui-bar-a{
background: #fff;
border: none;
border-bottom: 3px solid #5D2B44;
padding:0 10px 4px 0;
margin:0;
height:63px;
text-shadow: none;
}
#search-controls {
height: 63px;
padding: 5px;
}
/*#search-controls .br-right {
border-right: 1px solid #ccc;
}
*/
.search-field {
width: 100%;
overflow: hidden;
height: 26px;
}
.search-field .ui-btn-inner{
font-size: 12px!important;
font-weight:bold!important;
}
.filter, .ratings, .name {
height: 24px;
margin: 0 auto;
font-size: 12px;
line-height: 12px;
text-transform: uppercase;
text-shadow: none;
min-width: 55px;
padding: 0 2px;
}
.filter{float: left;}
.ratings, .name, .sort-by{float: right;}
.ratings{margin-right: 1px;}
.sort-by {
font-size: 16px;
margin: 6px 20px 0 0;
}
/* Stacked List */
.ui-content{overflow-x: visible;}
.ui-content .ui-listview {
margin: -10px;
}
.ui-listview li{
padding: 0;
}
.ui-li-static.ui-li {
padding: 0 15px 0 0;
margin: 0 0 -10px 7px;
}
.ui-li-static.ui-li-has-thumb {
min-height: 85px;
padding-left: 105px;
}
.ui-li-thumb{
max-height: 85px;
max-width: 100%;
}
.ui-li-heading{
color: #5D2B44;
font-size: 18px;
font-weight: bold;
line-height: 18px;
padding-top: 10px;
margin: 10px 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ui-li-heading .ui-link, .ui-li-heading .ui-link:visited, .ui-li-heading .ui-link:active{
color: #5D2B44;
text-decoration: none;
}
.ui-li-desc.cusine {
font-size: 12px;
font-weight: normal;
display: block;
line-height: 12px;
padding: 1px 0;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.ui-li-desc.cusine {
color: #999;
margin: -.9em 0 0;
}
.ui-li-desc.rating {
color: #666;
margin: -.9em 0 0;
}
.ui-li-desc.location {
color: #424242;
margin: -.2em 0 0;
}
.result {
height: 85px;
border-bottom: 1px solid #5D2B44;
display: block;
overflow: hidden;
}
.result img {
width: 95px;
height: 85px;
margin: 0 10px 0 0;
float: left;
}
.result .info {
padding: 12px 10px 0 0;
float: left;
text-shadow: none;
max-width: 385px;
height: 75px;
}
.result span {
display: block;
}
.result .restaurant {
font-size: 18px;
line-height: 18px;
font-weight: bold;
color: #5D2B44;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.result .cusine {
font-size: 12px;
line-height: 12px;
color: #999;
padding: 1px 0;
}
.result .stars {
height: 12px;
padding-top: 0px;
}
.result .location {
font-size: 12px;
line-height: 12px;
color: #424242;
}
.rates .rating-number{
line-height: 12px;
}
最佳答案
尝试从 search-inactive.css
文件中删除 overflow-x:visible
样式。来自http://www.css3.com/网站:
the ‘overflow-x’ property describes what to do with the content that exceeds the element’s width
一些可能相关的 SO 帖子:
关于ios - 防止在 iOS 中横向滚动内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13449044/
即使我的设备旋转(纵向->横向->纵向),我也需要始终以横向模式录制视频。 取角度很简单,我用的是hyroscope。我的问题是总是横向录制视频。需要任何建议。 我正在使用 AVCaptureSess
我正在 iPad(1,2) 以及 Samsung Tab 2 上测试我的网络应用程序。我有不同的 CSS(外部)集可应用于 iPad 上的横向/纵向模式和选项卡 2 上的横向/纵向模式。 但我无法为
我正在将Snappy Bundle和Symfony 2.1一起使用。 我有一些问题未在此捆绑包的文档中找到: 如何设置方向? 有没有显示页码的方法? 这是我的捆绑包的config.yml: knp_s
我一直在寻找这个问题的答案,但找不到任何答案。显然,iPhone SDK 3.0 使得 UIImagePickerController 可以以横向模式显示成为可能 - 但我没有找到任何允许这样做的方法
我有 1 个 Storyboard,我在 Swift 3 中的 Xcode 8 上使用带有大小类的自动布局。 我有这个当前的肖像 View : 目前,这是 1 个带有标签的垂直堆栈 View 。 在横
我正为这个而焦头烂额。基本上,我需要我的菜单根据菜单的内容水平放置一个容器。所以,我知道 table 和 table-cell 属性可以做到这一点。但是,当我将其与 Superfish Menu 结合
我努力做到这一点: 但我无法正确获取第三列和翻转的标题。 我现在是这样的: 最佳答案 该解决方案适用于 IE9、Chrome、Firefox、Safari 和 Opera,不需要 JavaScrip
我想要一个水平方向的 WPF DataGrid,有人知道解决方案吗? 最佳答案 我之前已经这样做了,因为我们希望能够对 DataGrid 和 PropertyGrid 使用相同的控件。很多事情都必须改
我正在开发一个适用于智能手机的网站版本,在处理智能手机横向方向的媒体查询时遇到了一个小问题。对于纵向,我正在使用以下媒体查询并且它工作得很好: @media only screen and (max-
如何让“AVCaptureVideoPreviewLayer”在横向方向上正确显示?它在纵向模式下工作正常但不旋转,并且当父 View Controller 处于横向模式时显示旋转的相机捕获。 最佳答
这个问题在这里已经有了答案: Force "portrait" orientation mode (12 个回答) 关闭2年前。 我的第一款 Android 游戏即将完成,但我遇到了一个非常简单的问题
我的数据在其中一个字段中具有嵌套映射。例如,数据位于名为“customers”的表中,如下所示: 姓名:比尔·琼斯 地址:{"billing":{"street":"123 Main", "city"
我正在横向模式下运行应用程序。我需要注意什么才能使拍摄的屏幕截图也处于横向模式。 我在 iPhone 应用程序中使用以下代码,底部有标签栏并拍摄屏幕截图,但它始终仅处于纵向模式。为什么? UIWind
谁能举例说明如何将单点触控应用程序的 View 从纵向旋转为横向,反之亦然? 最佳答案 如果您在 Interface Builder 中设置 ui 元素的几何形状,请确保在 Size Inspecto
我正在使用简单的 MPMoviePlayerController。在纵向模式下,它嵌入到我的布局中。当我旋转我的设备时,我希望它全屏显示。在全屏模式下,有一个完成按钮,但它唯一的作用就是暂停视频。当点
我正在尝试读取 JSON 模式,但似乎无法弄清楚如何将所有先前对象等输出到层次结构中。 这是JSON响应方案 { "Shopping": { "Orders": { "OrderInfo": {
我想在我的布局中包含一个 SlidingDrawer,但我会将它放在布局的侧面。所以开口是从左到右,而不是从下往上。这怎么办? 最佳答案 this link可能会帮助您创建水平滑动抽屉。如果您正在使用
就在我以为我已经解决了所有问题时..我遇到了这个问题。 场景。 我有一个简单的 tableView。并在导航项的 titleView 中带有搜索栏。 SearchBar 通过 View Control
我有一个带有 MGSplitView 的应用程序,其中包含表格 View 和 UIWebView,该应用程序固定为横向。 Web View 有一个附加到 Web View 的 UITapGesture
我有一部 iPhone,我正在添加横向支持。之前只是肖像。 当键盘显示时,我无法将文本字段移开。 我使用的解决方案与记录在案的 Apple 解决方案非常相似 here . 该解决方案在纵向模式下工作正
我是一名优秀的程序员,十分优秀!