Commit da807075 by lmf

优化加载更多产品样式居中

parent 004fb458
......@@ -32,7 +32,7 @@ if ($loadingImage) {
});
window.ias.extension(new IASSpinnerExtension({
src: "<?php echo $loadingImage; ?>",
html: '<div class="iass-spinner"><img src="{src}"/><span><?php echo $loadingText; ?></span></div>'
html: '<div class="iass-spinner" style="margin:auto;"><img src="{src}"/><span><?php echo $loadingText; ?></span></div>'
}));
window.ias.extension(new IASNoneLeftExtension({
text: "<?php echo $doneText;?>",
......@@ -40,9 +40,9 @@ if ($loadingImage) {
}));
window.ias.extension(new IASTriggerExtension({
text:"<?php echo $loadMoreText ?>",
html:'<div class="ias-trigger ias-trigger-next"><button class="load-more"><?php echo $loadMoreText ?></button></div>',
html:'<div class="ias-trigger ias-trigger-next" style="margin: auto;"><button class="load-more"><?php echo $loadMoreText ?></button></div>',
textPrev:"<?php echo $loadMoreText ?>",
htmlPrev:'<div class="ias-trigger ias-trigger-prev"><button class="load-more"><?php echo $loadMoreText ?></button></div>',
htmlPrev:'<div class="ias-trigger ias-trigger-prev" style="margin: auto;"><button class="load-more"><?php echo $loadMoreText ?></button></div>',
offset:"<?php echo $loadMore ?>",
}));
window.ias.on('rendered', function(items){
......
......@@ -1418,7 +1418,7 @@ IASTriggerExtension.prototype.prev = function() {
*/
IASTriggerExtension.prototype.defaults = {
text: 'Load more items',
html: '<div class="ias-trigger ias-trigger-next" style="text-align: center; cursor: pointer;"><a>{text}</a></div>',
html: '<div class="ias-trigger ias-trigger-next" style="text-align: center; cursor: pointer;margin: auto;"><a>{text}</a></div>',
textPrev: 'Load previous items',
htmlPrev: '<div class="ias-trigger ias-trigger-prev" style="text-align: center; cursor: pointer;"><a>{text}</a></div>',
offset: 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment