自分のサイトにgoogle + sigininボタンを作成しようとしています。私はこのリンクhttps://developers.google.com/+/web/signin/#button_attributesを通ってそれを働かせようとしましたが、今は私のスタイリングがすべて乱れています。私はCSSで[class = 'g-sinin']を使いこなすことができません。
これは私のコードです:Google+ログインボタン[クラス= 'g-signin']
<section class='login_G' >
<span class='g-signin' data-callback='signinCallback'
data-scope='https://www.googleapis.com/auth/plus.login'></span>
</section>
これは私のCSSです:私は、デフォルトのクラスclass='g-signin'
を非表示にしたり、それが良い作るにはどうすればよい
.login_G {
cursor: pointer;
margin-left: 35px;
float: left;
height: 72px;
width: 72px;
background:url(images/register-google-sprite.png) 0 0;
}
。スパンの内側でクラスを削除すると、Google +サインイン関数全体がオフになります。誰も私がどのようにバックグラウンドイメージをクリックしたときにsiginin機能を動作させることができるか教えてもらえますか?
効果は何ですか?それはここではっきりとは分かりません。 –
@albertxting、バックグラウンドイメージをクリックすると、どのようにsiginin機能を動作させることができますか? – user1846348
ご覧になれますか?あなたはhttp://jsfiddle.net –