良い一日をみんなに参加し、は、HTML、CSSおよびJavaScript
は、ここからソースを一つの問題を持って、私がする必要がどのような
<div class="offer offer-blocked">
<img src="https://i.stack.imgur.com/b1oc4.jpg"></img>
<div class="fb-like" data-href="http://www.windows-help-support.com" data-send="false" data-width="450" data-show-faces="false"></div>
<div id="fb-root"></div>
.offer-blocked {
position: relative;
display: inline-block;
&:after {
content: "";
display: block;
position: absolute;
height: 100%;
width: 100%;
background-color: rgba(0,0,0,0.7);
top:0;
left:0;
}
img {
@width: 10px;
filter: blur(@width);
// Browser Specific
-webkit-filter: blur(@width);
-moz-filter: blur(@width);
-o-filter: blur(@width);
-ms-filter: blur(@width);
}
.fb-like {
z-index: 100;
position: absolute;
top: 30%;
left: 30%;
margin-left:-20px;
color: #fff;
}
.fb-like:after {
content:"Please click on the LIKE button to unlock the OFFER";
display:'block';
position: absolute;
width: 100%;
left: 0;
top: 50px;
font-size: 25px;
font-family: verdana;
}
}
jQuery(function() {
window.fbAsyncInit = function() {
// Don't use my app id, use your own or it won't work!
FB.init({appId: '134385103436857', status: true, cookie: true, xfbml: true});
FB.Event.subscribe('edge.create', function(href, widget) {
console.dir(href);
console.dir(widget);
jQuery(".offer.offer-blocked").removeClass("offer-blocked");
jQuery(".fb-like").hide();
});
};
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1& appId=134385103436857";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
``});
は、HTMLの中に一緒にすべてこのコードを入れています。 これは後でwordpress.COMのウェブページに掲載されます。
HTMLの内部にコードを挿入して、スタイルをインラインで追加しようとしましたが、これは機能しませんでした。
ありがとうございます。
あなたはにタグとJSにあなたのCSSを入れていましたか?あなたの問題を発展させることができますか? –
スタイルやスクリプトを他のファイルに置く方がよい – KrisKK