overflow-x:visible;不工作overflow-y:auto;任何解决方法? [英] overflow-x: visible; doesn't work with overflow-y: auto; any workaround?

查看:537
本文介绍了overflow-x:visible;不工作overflow-y:auto;任何解决方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试

  .item {
width:100px;
overflow-x:visible;
overflow-y:auto;
}

但是垂直溢出:auto似乎覆盖了水平



小提琴: http://jsfiddle.net/xcUTV/



有没有任何解决方法?即使有一点javascript

解决方案

你不能,这是写在规格。



请在这里查看: http://stackoverflow.com/a/6433475/1343096 p>

由于它是写在规范中,我99%肯定是不可能做到的。


i am trying

.item{
   width:100px;
   overflow-x: visible;
   overflow-y: auto;
}

But vertical overflow:auto seems to override horizontal's

fiddle: http://jsfiddle.net/xcUTV/

Is there any workaround for this? even with a bit of javascript

解决方案

You cannot, that is written in the spec.

Have a look here : http://stackoverflow.com/a/6433475/1343096

Since it is written in the spec, I am 99% sure that it is impossible to do.

这篇关于overflow-x:visible;不工作overflow-y:auto;任何解决方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆