【问题标题】:Centering iframe + DIV from Bandcamp and ReverbnationBandcamp 和 Reverbnation 的 iframe + DIV 居中
【发布时间】:2011-06-24 22:53:38
【问题描述】:

[edit 3] - 好的,这是代码,但是 Chrome 和 Sea Monkey 以及 Firefox 不能正确显示。我该如何更改?

    <html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title>Pissing Graffiti - Home</title>
</head>
<body style=" background-color: rgb(102, 102, 102); background-image:
url(&quot;http://static.tumblr.com/iorl8zv/Me9ljgnyz/pgbgtumb.gif&quot;);">
<p></p>
<div style='color: rgb(255, 176, 46)'><b><center>Download the new 8-track SAXAPHONE EP, by Pissing Graffiti</center></b></font></div></div>
<p></p>
<div style="text-align: center;" onClick="document.location='http://music.pissinggraffiti.com';"><IMG SRC="http://static.tumblr.com/iorl8zv/vIXlngmey/cover2.jpg" ALT="Music"></div>
<p></p>
<div><a style='color: rgb(255, 176, 46);' align-text="center;"
href="www.blog.pissinggraffiti.com"><b><center>Head over to the blog.</center></b></a></div>
<p></p>
<div align="center";<img
style="visibility:hidden;width:0px;height:0px;"
src="http://c.gigcount.com/wildfire/IMP/CXNID=2000002.11NXC/bT*xJmx*PTEzMDkwMTE*OTg1MTYmcHQ9MTMwOTAxMTUwMDU2MSZwPTI3MDgxJmQ9ZmFuX2NvbGxlY3Rvcl9maXJzdF9nZW4mZz*x/Jm9mPTA=.gif"
border="0" height="0" width="0"> <object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
height="100" width="434"><param name="movie"
value="http://cache.reverbnation.com/widgets/swf/11/fancollector.swf?page_object_id=artist_470177&amp;backgroundcolor=666666&amp;font_color=FFB02E&amp;posted_by=artist_470177&amp;hide_street_team=true"><param
name="allowscriptaccess" value="always"><param
name="allowNetworking" value="all"><param
name="allowfullscreen" value="true"><param name="wmode"
value="opaque"> <param name="quality" value="best"><embed
src="http://cache.reverbnation.com/widgets/swf/11/fancollector.swf?page_object_id=artist_470177&amp;backgroundcolor=666666&amp;font_color=FFB02E&amp;posted_by=artist_470177&amp;hide_street_team=true"
type="application/x-shockwave-flash"
allowscriptaccess="always" allownetworking="all"
allowfullscreen="true" wmode="opaque" quality="best"
height="100" width="434"></object><br>
<img style="visibility:hidden;width:0px;height:0px;"
src="http://www.reverbnation.com/widgets/trk/11/artist_470177/artist_470177/t.gif"
border="0" height="0" width="0"> </div>
</body>
</html>

忘了说问题了。

1 - Reverbnation @ddy 收集器没有出现

2 - 整个水平屏幕是一个超链接,而我只是希望它是图像。

3 - 我刚刚发现,当单击下面的链接时,它会尝试将我发送到此处:“http://pissinggraffiti.com/www.blog.pissinggraffiti.com”,这当然不存在。但是,“blog.pissinggraffiti.com”工作正常。我检查了我的代码,但无法弄清楚。 “pissinggraffiti.com 转到我托管的 index.html 文件,而“blog.pissinggraffiti.com”是指向我的 Tumblr 页面的子域。那里发生了什么?

感谢您的宝贵时间!

【问题讨论】:

  • 我的错 - 我一直在回复 Mike,本意是在这里回复 0.o
  • 什么都没有? @ddy 收集器的格式是否不正确?不是最新的?将 href 添加到 URL 有什么用?

标签: iframe html coding-style center


【解决方案1】:

为了让您的 Bandcamp 站点位于 Reverbnation 收集器的左侧,您需要使用 float 属性,如下所示:

<iframe style="all-your-other-stuff-that; float: left;">

那么对于您的链接,它仍然显示为蓝色并带有下划线,因为这是默认外观并且您尚未对其应用样式。您应用到周围 div 的样式

style="color: rgb(255, 176, 46);"

实际上应该应用于链接。

<a style="color: rgb(255, 176, 46);" href="www.blog.pissinggraffiti.com">Head over to the homepage/blog.</a>

此外,如果您要进行如此多的样式设置,您可能需要考虑将其粘贴在样式表中,而不是全部内联。

【讨论】:

  • 我已经改变了我的方法并且有点想要我想要的东西,但是我遇到了浏览器显示问题。编辑帖子并发布代码。请帮忙!
  • 好的 - 我还没有发现问题 1
【解决方案2】:

好的 - 我还没有弄清楚问题 2,但是:

1 - 与他们给我的代码有关。因此,我向他们询问了 html 代码,然后将其插入,调整了格式,瞧。我所有的浏览器都可以工作。如果有人在 Windows 上测试它,我将非常感激!

3 - 我必须更改链接 =/ 他们仍然指向 http://pissinggraffiti.com roote,我只需要调整图像映射/链接即可获得 http://blog.pissinggraffiti.com

谢谢大家!

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-12-11
  • 1970-01-01
  • 2020-05-25
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多