溢出 - Y:滚动不工作在Firefox [英] overflow-y: scroll not working in firefox

查看:143
本文介绍了溢出 - Y:滚动不工作在Firefox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请参阅网址: http://jsfiddle.net/8tFnG/1/

<table border="1" cellspacing="0" cellpadding="1" width="100%">
    <colgroup>
        <col span="1" style="width:5%">
            <col span="1" style="width:70%">
                <col span="1" style="width:25%">
    </colgroup>
    <tr>
        <td colspan="2">
            <div style="width:100%; box-shadow: 1px 1px 1px #cfcfcf; border-radius:10px; color:black; border:1px solid #e5e5e5; min-height: 100px;">Sample Text 1</div>
        </td>
        <td rowspan="5" style="vertical-align: top;">
            <section class="loginform">
                <fieldset style="border-radius: 5px; padding: 5px;height: 450px; border: solid 1px red; overflow: auto;">
                    <legend>Template</legend>
                    <ul style="padding: 10px;">
                        <li>one</li>
                        <li>Two</li>
                        <li>Three</li>
                        <li>Four</li>
                        <li>Five</li>
                        <li>one</li>
                        <li>Two</li>
                        <li>Three</li>
                        <li>Four</li>
                        <li>Five</li>
                        <li>one</li>
                        <li>Two</li>
                        <li>Three</li>
                        <li>Four</li>
                        <li>Five</li>
                        <li>one</li>
                        <li>Two</li>
                        <li>Three</li>
                        <li>Four</li>
                        <li>Five</li>
                        <li>one</li>
                        <li>Two</li>
                        <li>Three</li>
                        <li>Four</li>
                        <li>Five</li>
                    </ul>
                </fieldset>
            </section>
        </td>
    </tr>
    <tr>
        <td>val</td>
        <td>
            <div style="width:100%; box-shadow: 1px 1px 1px #cfcfcf; color:black; border:1px solid #e5e5e5; min-height: 80px;">1 Only</div>
        </td>
    </tr>
    <tr>
        <td>bal</td>
        <td>
            <div style="width:100%; box-shadow: 1px 1px 1px #cfcfcf; border-radius:10px; color:black; border:1px solid #e5e5e5; min-height: 80px;">2 only</div>
        </td>
    </tr>
    <tr>
        <td>nal</td>
        <td>
            <div style="width:100%; color:black; box-shadow: 1px 1px 1px #cfcfcf; border-radius:10px; color:black; border:1px solid #e5e5e5; min-height: 80px;">Both 1 and 2</div>
        </td>
    </tr>
    <tr>
        <td>dul</td>
        <td>
            <div style="width:100%; box-shadow: 1px 1px 1px #cfcfcf; border-radius:10px; color:black; border:1px solid #e5e5e5; min-height: 80px;">Neither 1 nor 2</div>
        </td>
    </tr>
    <tr>
        <td></td>
        <td></td>
    </tr>
</table>

overflow-y:scroll在firefox中不起作用;任何想法修复相同?
[你可以看右边的模板部分]

overflow-y: scroll not working in firefox; any idea to fix same? [You can look at template section on right hand side]

推荐答案

这是一个错误。溢出属性没有在firefox的字段集上实现。你必须使用fieldset吗?如果没有,我会建议将其更改为一个div:

This is a bug. The overflow property is not implemented on fieldsets in firefox. Do you have to use a fieldset? If not I would suggest changing it to a div:

更改:

Change:

<fieldset style="border-radius: 5px; padding: 5px;height: 450px; border: solid 1px red; overflow: auto;">

到:

to:

<div style="border-radius: 5px; padding: 5px;height: 450px; border: solid 1px red; overflow: auto;">

这篇关于溢出 - Y:滚动不工作在Firefox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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