jQuery ui 选项卡问题
我回到了一个问题,我们从未找到关于我正在开发的网站主页的答案,我说我的选项卡只会分散在低于我的分辨率或围绕它的分辨率上,但不完全是这样。我的屏幕分辨率为 1280x800,显示没有问题,但一旦我降到 1024x768 或 1280x1024 或类似的分辨率,它就会显示这个样子。
我想发布代码,但这意味着发布大量 HTML,我认为这不健康。希望截图能起到作用。不久前有人说我的标签太大了,所以我把它们缩小了,但仍然如此。这是屏幕截图:
扭曲的主页屏幕截图 http://www.thelawyerschronicle.com/upload_pics/Screenshot .png
这是为广告提供支持的 CSS。网站其余部分的 CSS 只是一个普通的 jQuery UI 基础。
#adverts{
padding:0px;
width:400px;
height:109px;
float: right;
margin-top: auto;
margin-left:320px;
/* margin-right: auto; */
}
I came back to a problem we never found an answer to regarding the homepage of a site I am working on and I said that my tabs would just scatter on a resolution less than mine or around it but not quite. I am on a 1280x800 screen and it displays no problem but as soon as I drop to 1024x768 or 1280x1024 or anything like that this is what it looks like.
I wanted to post the code but it means posting a lot of HTML and I don't think that will be healthy. Hopefully the screenshot will do. Someone said a while back that my tabs were too big so I reduced them and still. Here is the screenshot though:
warpped homepage screenshot http://www.thelawyerschronicle.com/upload_pics/Screenshot.png
Here is the CSS that powers the adverts. The CSS for the rest of the site is just a normal jQuery UI base.
#adverts{
padding:0px;
width:400px;
height:109px;
float: right;
margin-top: auto;
margin-left:320px;
/* margin-right: auto; */
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
无论选项卡写入哪个区域,其宽度都会受到限制,导致过早换行到下一行(我认为这就是您遇到的问题 - 您的问题没有明确说明问题是什么)。我会用 Firebug 四处寻找,直到任何大小的 div 或边距导致空间受到限制。
Whatever region the tabs are being written to is having its width constrained, causing the premature wrap to the next line (I assume this is the problem you're having-- your question is not explicit on what the problem is). I'd fish around with Firebug until whatever sized div or margin is causing the space to be limited.