css - 如何使带有 CSS 的 HTML Slider 留在框中?

标签 css rotation webkit slider

我有这个表格/ slider 错误,但我不确定如何修复它以保留在表格中: http://jsfiddle.net/WH7Kf/1/ 我的 CSS 是:

input[type='range']{
    -webkit-appearance: none !important;
    margin: 0px;
    padding: 0px;
    background: #000;
    height: 100px;
    width: 400px;
    border-bottom: #333 1px solid;
    -webkit-transform: rotate(90deg);
}

我的 HTML5 是:

<table>
<tr>
    <td>VOLUME</td>
    <td>TONE</td>
</tr>
<tr>
    <td>volume:<input id="volumeslider" type="range" min="0" max="100" step=".1"></td>
    <td><input id="tone" type="range" min="40" max="17000" step="1">    //seekslider</td>
</tr>
</table>

最佳答案

翻 table ,再翻最后的话: http://jsfiddle.net/WH7Kf/14/

table{
    position:absolute;
    top:150px;
    -webkit-transform: rotate(90deg);
}

input[type='range']{
            position: relative;
            -webkit-appearance: none !important;
            margin: 0px;
            padding: 0px;
            background: #000;
            height: 100px;
            width: 400px;
            border-bottom: #333 1px solid;
        }

        input[type='range']::-webkit-slider-thumb {
            -webkit-appearance: none !important;
            background: radial-gradient(#FFF, #333);
            height:110px;
            width:15px;
            border-radius:100%;
            cursor:pointer;
        }

关于css - 如何使带有 CSS 的 HTML Slider 留在框中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23420867/

相关文章:

属性父选择器的CSS

html - 注销 Bootstrap 崩溃

java - 将位图 "orbit"设为一个点

css - 为什么 -webkit-box-flex 属性对此不起作用?

safari - 使用 border-radius 时 safari 6.0.2 中的波纹 css 边框

javascript - 使用 JavaScript 自定义动画

css - 当页面宽度减小时,我怎样才能做到这一点,它最终会停止调整?

c++ - 在 C/C++ 中旋转图像

objective-c - iOS - 类似 iOS 5 横幅通知的翻转动画

javascript - 除非发现某个值是引用文本的一部分,否则如何删除该值的所有实例?