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”元素中的位置