【发布时间】:2014-03-18 14:05:20
【问题描述】:
我的分享按钮的 CSS 有问题。 Google 的样式重置了我的 CSS。
这是我的 iframe:
<iframe src="https://apis.google.com/u/0/_/+1/fastbutton?usegapi=1&size=tall&origin=http%3A%2F%2Flocalhost&url=http%3A%2F%2Fwww.infomovies.it%2Flocale.aspx%3Flocale%3D1&gsrc=3p&ic=1&jsh=m%3B%2F_%2Fscs%2Fapps-static%2F_%2Fjs%2Fk%3Doz.gapi.it.C5yhGIzSUtg.O%2Fm%3D__features__%2Fam%3DAQ%2Frt%3Dj%2Fd%3D1%2Fz%3Dzcms%2Frs%3DAItRSTNNChyVUYjljlut1Guvhr2Y24lHpw#_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe%2C_renderstart%2Concircled%2Cdrefresh%2Cerefresh%2Conload&id=I0_1395148139488&parent=http%3A%2F%2Flocalhost&pfname=&rpctoken=39693034"></iframe>
这是我的脚本:
<script>
$('iframe').load(function() {
$('iframe').contents().find('head').append($('<link/>', { rel: 'stylesheet', href: '/css/masterBlaster.css', type: 'text/css' }));
});
</script>
【问题讨论】: