读书人

新浪微博生成的微博秀代码在静态页面

发布时间: 2012-12-16 12:02:32 作者: rapoo

新浪微博生成的微博秀代码,在静态页面能显示我放到自己的.net页面里就显示不了
<div style="width:1000px; height:250px; margin:0 auto">
<div style="float:left; width:350px; height:250px">
<iframe width="350" height="250" class="share_self" frameborder="0" scrolling="no" src="http://widget.weibo.com/weiboshow/index.php?language=&width=350&height=250&fansRow=2&ptype=1&speed=0&skin=1&isTitle=1&noborder=1&isWeibo=1&isFans=1&uid=2541852460&verifier=a014606d&dpc=1"></iframe>
</div>
<div style="float:left; width:650px; height:250px">

</div>
</div>
上面代码中<iframe>至</iframe>的代码是新浪微博秀生成的,我把引用到我的页面里,运行网页始终显示空白,在桌面建一个文本文档把代码拷贝进去,改文档后缀为htm也是可以看到微博秀的,为什么在.net的页面里就是看不到效果呢,有没有做过这个的啊,帮帮忙啊
[解决办法]
单纯看你的这些代码是可以显示的,如果不显示,是其他代码的影响导致
[解决办法]
能给个QQ吗。我把整个页面代码发你看下行不
[解决办法]
貌似去掉外面的<form>
[解决办法]
去掉了form标签页一样。同样的微博秀代码,腾讯的就没问题,新浪的就是现实不了
[解决办法]
我也碰到过这样的问题,不过发布到服务器上就又能显示出来了,我也不知道为什么,求解。帮顶。
[解决办法]
我发布网站后放到iis里访问还是不显示~不知道怎么办了~
[解决办法]

<html xmlns="http://www.w3.org/1999/html">
<head>
<title>First Page</title>
</head>
<body>
<form id="form1" >
<div style="float:left; width:350px; height:250px">
<iframe width="350" height="250" class="share_self" frameborder="0" scrolling="no" src="http://widget.weibo.com/weiboshow/index.php?language=&width=350&height=250&fansRow=2&ptype=1&speed=0&skin=1&isTitle=1&noborder=1&isWeibo=1&isFans=1&uid=2541852460&verifier=a014606d&dpc=1"></iframe>
</div>
<div style="float:left; width:650px; height:250px">

</div>
</div>
</form>
</body>
</html>

这样的话,可以显示呀!
[解决办法]
楼上的兄弟,我知道这样可以显示,你有没有试过把那个iframe放在aspx的页面中,不是html页面,问题就是在html页面显示没问题到了aspx页面就是空白了
[解决办法]
本帖最后由 net_lover 于 2012-10-12 20:04:05 编辑 放在aspx中 IE下是可以的,

ff里面去掉不允许跟踪也是可以显示的
[解决办法]
引用:
楼上的兄弟,我知道这样可以显示,你有没有试过把那个iframe放在aspx的页面中,不是html页面,问题就是在html页面显示没问题到了aspx页面就是空白了

的确如此!
改了下src可以显示其他网站,你说的腾讯微博秀也可以,坐等答案了。
[解决办法]
算了不折腾了结贴吧
[解决办法]
发帖的兄弟解决问题了吗?我也出现这种情况
[解决办法]
哎,我也是,同样的问题
------解决方案--------------------


关于微博秀的问题,我也遇到了,我发现怎么回事了,如果在vs中启动页面的话我们浏览器中的路径是localhost,你只要改成除了这个意外的东西就可以了,比如127.0.0.1这样就会显示出来了.希望对你有用
[解决办法]
最后我用了另外一段代码解决了。希望代码对大家有用,我发出来
<iframe style=" background-color:White " width="235" height="80" frameborder="0" allowtransparency="true" marginwidth="0" marginheight="0" scrolling="no" border="0" src="http://widget.weibo.com/relationship/followbutton.php?language=zh_cn&width=227&height=64&uid=2674267941&style=4&btn=red&dpc=1"></iframe>
<iframe style=" background-color:White" src="http://follow.v.t.qq.com/index.php?c=follow&a=quick&name=z252918631&style=1&t=&f=1" marginwidth="0" marginheight="0" allowtransparency="true" frameborder="0" height="80" scrolling="auto" width="235"></iframe>

一个是腾讯的 一个是新浪的,uid和name就是QQ账号和新浪微博登陆账号 大家可以试试 这个比较好用,显示都正常

读书人网 >asp.net

热点推荐