fixed

终于学会怎么写后台侧列表(隐藏滚动条)

北战南征 提交于 2019-11-26 17:22:03
终于学会怎么写后台侧列表(隐藏滚动条) 首先一个标准后台程序有三部分组成: 顶部条 左侧列表 右侧正文内容 现在要求如下: 左侧列表可以滑动,但不可见滚动条 左侧列表滑动时,顶部条不能动 右侧内容区高度不够时,左侧依然可以滑动 实现和办法: 左侧列表和顶部条定位使用 position:fixed 左侧列表要使用 bottom:0(left:0) ,否则不能滑动 左侧列表使用 overflow-x:hidden;overflow-y:scroll; 左侧列表 宽度 要和右侧内容的 margin-left 后对齐, 其实就是要用右侧正文内容盖住左侧列表的滚动条而隐藏,而盖住的方式是左侧使用 fixed ,右侧使用 relative 。 html,body 使用 height:100% (为满足右侧正文高度) 右侧正文内容区使用 height:100% (来撑起高度) 右侧正文内容区使用 position:relative;(用来覆盖左侧多余的滚动条) body使用 overflow-x:hidden; (非必须) 右侧内容区一定要给个背景颜色,用来盖住左侧滚动条 左侧列表使用height:100% 简单用代码来写就是: html,body{ height:100%; overflow-x:hidden; /*非必须*/ } .topbar{ position:fixed; /*必须*/

Dealing with overlapping jQuery sortable lists

◇◆丶佛笑我妖孽 提交于 2019-11-26 16:56:41
问题 This is a bit of an obscure issue, but I'm using jQuery Sortables and trying to get two connected lists working together nicely when one is positioned as fixed . It all works fine until you scroll the page a bit such that the two lists end up positioned on top of each other. Then the lists seem to get confused as to which one should be receiving the item that's being dragged, meaning you get a bunch of jittering happening as it appears/disappears in each list. It looks like the issue is that

IE 10 & 11 make fixed backgrounds jump when scrolling with mouse wheel

我与影子孤独终老i 提交于 2019-11-26 15:44:26
问题 When you scroll with the mouse wheel in Windows 8 the fixed background image bounces around like crazy. This only affects IE 10 and IE 11. This affects elements with position:fixed as well. Here is an example with a fixed background-image: http://www.catcubed.com/test/bg-img-fixed.html Here is example code: #section{ position: fixed; top:0; left:0; background-color:#eee; background-position: top left; background-image: url("images/7.png"); background-size: auto; background-repeat: no-repeat;

Test Report

自作多情 提交于 2019-11-26 15:29:01
一开始我们就将软件按功能分为几个模块,分别由不同的人负责开发,相关人员协助,因此test也主要针对每一部分的功能进行测试。Test Case如下表: Test Cases Test Scenario 注册模块 未注册用户输入用户名、密码即可成功注册,并跳转至主窗口 登陆模块 程序运行后跳转至此,未注册用户可点击按钮进入注册界面,已注册用户可输入用户名、密码进入主窗口,有按钮可点击后直接退出程序 聊天模块 允许用户发送消息、表情、文件,选择字体、格式、颜色,允许发送离线消息,发送文件时允许选择本地存放的文件夹 日程模块 双方可以编辑、删除自己的日程安排,并可看见对方的日程安排,安排可针对天或某一段时间 涂鸦板 用户可在涂鸦板上绘制图形、选择画笔颜色,双方在线时可看见对方的操作 神笔马良 实现加入物理引擎的图形绘制和一部分的通信传输 日日心情 用户可以选择日记本页数、封面,编辑日记本名字、内容,删除日记本,允许自由翻页 主窗口 可进入各功能模块窗口,显示对方在线与否状态,允许用户退出程序、最小化 Bug列表如下,现在程序还在最后的调试、修复中,active的bug尚未列出 ID Reason(Stasus) Title 37760 Fixed 1.1.1 退出DaiDai但是并没有关闭对应进程 38076 Fixed 1.1.2 在主界面通过Alt+F4退出,并没有关闭对应进程

HTML table with horizontal scrolling (first column fixed)

五迷三道 提交于 2019-11-26 15:08:19
I have been trying to think of a way to make a table with a fixed first column (and the rest of the table with a horizontal overflow) I saw a post which had a similar question. but the fixed column bit did not seem to be resolved. Help? I have a similar table styled like so: <table style="width:100%; table-layout:fixed"> <tr> <td style="width: 150px">Hello, World!</td> <td> <div> <pre style="margin:0; overflow:scroll">My preformatted content</pre> </div> </td> </tr> </table> skube How about: table { table-layout: fixed; width: 100%; *margin-left: -100px; /*ie7*/ } td, th { vertical-align: top;

Fixed header table with horizontal scrollbar and vertical scrollbar on

情到浓时终转凉″ 提交于 2019-11-26 12:47:56
I have been trying to figure out this problem i have with html/css sticky header + scrollbars. We are creating a program that requires scrollbars to show up once the containersize reaches a certain point(depending on resolution of the user). I am forcing a min-width on the second column in the table, so the table stops decreasing at a certain point and forces the container to stay at a certain width. The overflow on the container shows the horizontal scrollbar. Everything works fine. Once i add a second scrollbar for the vertical scrolling, things are getting messed up. Does someone have a

parent & child with position fixed, parent overflow:hidden bug

我只是一个虾纸丫 提交于 2019-11-26 11:46:52
I don't know if there is an issue, but I was wondering why the overflow:hidden does not function on fixed parent/children element. Here's an example: CSS and HTML: .parent{ position:fixed; overflow:hidden; width:300px; height:300px; background:#555; } .children{ position:fixed; top:200px; left:200px; width:150px; height:150px; background:#333; } <div class="parent"> <div class="children"> </div> </div> Live demo: jsFiddle Because a fixed position element is fixed with respect to the viewport, not another element. Therefore since the viewport isn't cutting it off, the overflow becomes

How to fix a header on scroll

允我心安 提交于 2019-11-26 09:06:32
问题 I am creating a header that once scrolled to a certain amount of pixels it fixes and stays in place. Can I do this using just css and html or do i need jquery too? I have created a demo so you can understand. Any help would be great! http://jsfiddle.net/gxRC9/4/ body{ margin:0px; padding:0px; } .clear{ clear:both; } .container{ height:2000px; } .cover-photo-container{ width:700px; height: 348px; margin-bottom: 20px; background-color:red; } .small-box{ width:163px; height:100px; border:1px

定位的方法

馋奶兔 提交于 2019-11-26 08:29:31
定位 position 这五个属性都是css属性 方向的属性值都是length 比如50px Position的属性值 relative 相对定位:相对自己原来的位置进行定位。且还占用之前的空间。 absolute 绝对定位: 如果一个元素设置了absolute/fixed,它将向父级查找是否有position属性,如果有就以父级为参考点,如果没有就继续向父级的父级查找,如果有position属性就以父级的父级为参考点,如果没有就按照这种方式继续向上查找,直到找到为止,如果一直都没有就以body窗口为参考点。 简称 子绝父相。 Fixed 固定定位 Absolute和fixed一旦设置了,该元素就会脱离文档流。 Margin 一个元素设置了margin,属性值是length。总共有四个margin分别是margin-top,margin-right,margin-bottom,margin-left。 Margin的简写 Margin:10px 20px 30px 40px; 代表上右下左。 Margin:10px 20px 30px 代表 上 左右 下。 Margin:10px 20px; 代表 上下 左右 Margin:10px; 代表上右下左。 Padding和margin的简写一样。 标准流下,垂直方向的margin不叠加,以最大的为准。 如果不在标准流下

Stop fixed position at footer

偶尔善良 提交于 2019-11-26 06:05:56
问题 I\'m looking for a solution to the popular issue of stopping a fixed object at the footer of the page. I basically have a fixed \"share\" box in the bottom left corner of the screen and I don\'t want it to scroll over the footer, so I need it to stop about 10px above the footer. I\'ve looked at other questions here as well as others. The closest/most simple demo I could find is http://jsfiddle.net/bryanjamesross/VtPcm/ but I couldn\'t get it to work with my situation. Here\'s the html for the