Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/86.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery css边框半径特定角半径?_Jquery_Css - Fatal编程技术网

Jquery css边框半径特定角半径?

Jquery css边框半径特定角半径?,jquery,css,Jquery,Css,您好,我正在尝试使用排序方法上的jquery sortable更改某些uls特定角点的边界半径 这是我到目前为止的代码,它不起作用,有什么想法吗 sort: function() { var borderSet = $('#fluidWrap ul:last-child').attr('id'); if (borderSet == 'sideWrap') { $('#sideWrap ul').css({BorderTopRightRadius: 10, Bor

您好,我正在尝试使用排序方法上的jquery sortable更改某些uls特定角点的边界半径

这是我到目前为止的代码,它不起作用,有什么想法吗

sort: function() {
    var borderSet = $('#fluidWrap ul:last-child').attr('id');
    if (borderSet == 'sideWrap') {

        $('#sideWrap ul').css({BorderTopRightRadius: 10, BorderBottomRightRadius: 10});
    }
    else {
        $('#sideWrap ul').css({BorderTopLeftRadius: 10, BorderBottomLeftRadius: 10});
    }
}
试一试


尝试使用可能更有帮助,因为它还可以解释浏览器在边界半径定义方面的差异。

您可以使用:

border-radius: 0px 10px 0px 0px;
即:

border-radius: [top-left],[top-right],[bottom-right],[bottom-left];
此工具非常适合css3:

这应该可以工作

css({BorderTopRightRadius: '10px', BorderBottomRightRadius: '10px'})

你确定你不需要提到单位吗,我说的是10px。
css({BorderTopRightRadius: '10px', BorderBottomRightRadius: '10px'})