English 中文(简体)
当观察室的宽度小于超文本页宽度时,我如何获得一个固定的分量,以横向方式发展?
原标题:How do I get a fixed element to scroll horizontally when the viewport width is smaller than an HTML page width?
  • 时间:2011-07-05 18:42:26
  •  标签:
  • jquery
  • css

我能否得到一个固定的阻挡因素,能够在没有贾瓦文或 j文 w的情况下横向发展? 进入电梯顶端后,当窗户垂直发展时,其中心位置从绝对到固定。 是否需要再进行一套计算,以确定在平整页时如何定位?

Stack Overflow does this too. enter image description here

问题回答

Not possible with pure css.

你们需要Javascript. (i 如今面临同样的问题。

。 集中一个固定要素,但横向发展

I don t really get your question but somehow I think this is what your are looking for: Use CSS @media queries to determine the width of the viewport.





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

Drop down background url in Safari Issue

selectBox.selectCSS { background: url(/Images/replacementSelectBackground.png) top left no-repeat height:auto; } I have an issue in Safari only where the image is not rendering on top ...

CSS specific for Safari

How do you target specifically safari in css with styles?

Aligning textarea in a form

Ive used the following css code to align my form elements: form { position:relative; } form input { position:absolute; left:11em; } However, the textarea element is not aligned correctly with the ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

CSS problem with page footer

I have defined my page footer in the css file as: #footer { position: absolute; height: 50px; text-align: center; background: #66CCCC; bottom: 0px; left: 0px; width: 100%; height: ...