我使用bootstrap
有3列<div class="row">
<div class="col-md-3">1</div>
<div class="col-md-5">2</div>
<div class="col-md-4">3</div>
</div>
我尝试使用pull and push
<div class="row">
<div class="col-md-3">1</div>
<div class="col-md-5 col-sm-push-4">2</div>
<div class="col-md-4 col-sm-pull-5">3</div>
</div>
我的代码:https://www.w3schools.com/code/tryit.asp?filename=FFMTM73UDAWR
答案 0 :(得分:1)
<div class="row">
<div class="col=md-4">1</div>
<div class="col=md-4">2</div>
<div class="col=md-4">3</div>
</div>
&#13;
简单地移除push和pul bootstrap首先移动,如果没有指定 - grid将占用所有12列 所以通过为每个div指定col-md-4,告诉你使用col-sm-12和col-xs-12来实现更小的屏幕。
答案 1 :(得分:1)
在这种情况下从手机开始
var auth2 = gapi.auth2.init({
client_id: '',
scope: 'https://www.googleapis.com/auth/youtube',
fetch_basic_profile: false,
cookie_policy: 'single_host_origin'
});
auth2.signIn({
scope: 'https://www.googleapis.com/auth/youtube',
prompt: 'select_account'
}).then(function(result) {
console.log('Signed in!');
console.log(result);
}, function(error) {
console.log(error);
});
&#13;