Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/90.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
Html 如何改变装载轮在;分区;要素_Html_Position_Loading_Spin.js - Fatal编程技术网

Html 如何改变装载轮在;分区;要素

Html 如何改变装载轮在;分区;要素,html,position,loading,spin.js,Html,Position,Loading,Spin.js,当用户按下按钮时,我使用使加载轮出现 唯一的问题是我不能改变它出现的位置 //Spinner Options var opts = { lines: 13, // The number of lines to draw length: 7, // The length of each line width: 4, // The line thickness radius: 5, // The radius of the inner circle corne

当用户按下按钮时,我使用使加载轮出现

唯一的问题是我不能改变它出现的位置

//Spinner Options
var opts = {
    lines: 13, // The number of lines to draw
    length: 7, // The length of each line
    width: 4, // The line thickness
    radius: 5, // The radius of the inner circle
    corners: 1, // Corner roundness (0..1)
    rotate: 0, // The rotation offset
    color: '#000', // #rgb or #rrggbb
    speed: 1, // Rounds per second
    trail: 60, // Afterglow percentage
    shadow: false, // Whether to render a shadow
    hwaccel: false, // Whether to use hardware acceleration
    className: 'spinner', // The CSS class to assign to the spinner
    zIndex: 2e9, // The z-index (defaults to 2000000000)
    top: 'auto', // Top position relative to parent in px
    left: 'auto' // Left position relative to parent in px
};
var spinner = new Spinner(opts).spin();
在选项的右端,出现
顶部:“自动”,左侧:“自动”
。我试过输入“10”或“10px”。但这会引起一个错误

如何更改加载轮在“div”元素中的位置