获取文本环绕 Flash 播放器/对象
我使用一些代码在包装 div 中插入一个小型 soundcloud 播放器,
我的问题是我似乎无法让对象/播放器向左浮动,因此文本将环绕它。正如你所看到的,我尝试向其中添加一个类但这似乎不起作用.. 有人可以帮忙吗?
在我的 php 文件中我得到了
} elseif (!empty($track)){
echo "<object class='track' height='18' width='250'> <param name='movie' value='http://player.soundcloud.com/player.swf?url=" . $track . "&show_comments=false&auto_play=false&player_type=tiny&color=ff7700'></param> <param name='allowscriptaccess' value='always'></param> <embed allowscriptaccess='always' height='18' src='http://player.soundcloud.com/player.swf?url=" . $track . "&show_comments=false&auto_play=false&player_type=tiny&color=ff7700' type='application/x-shockwave-flash' width='250'></embed> </object>";
}
,在我的 css 文件中我得到了
.track {float: left; margin-right: 5px;}
i use a bit of code to insert a small soundcloud player inside a wrapper div
my problem is i cant seem to get the object/player to float left so text will wrap around it.. as u can see ive tried adding a class to it but this doesnt seem to work.. can some1 help ?
in my php file i got
} elseif (!empty($track)){
echo "<object class='track' height='18' width='250'> <param name='movie' value='http://player.soundcloud.com/player.swf?url=" . $track . "&show_comments=false&auto_play=false&player_type=tiny&color=ff7700'></param> <param name='allowscriptaccess' value='always'></param> <embed allowscriptaccess='always' height='18' src='http://player.soundcloud.com/player.swf?url=" . $track . "&show_comments=false&auto_play=false&player_type=tiny&color=ff7700' type='application/x-shockwave-flash' width='250'></embed> </object>";
}
and in my css file i got
.track {float: left; margin-right: 5px;}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你正在漂浮物体。尝试浮动包装
div
吗?You're floating the object. Try floating the wrapper
div
instead?尝试浮动包装 div(而不是对象本身)并为其指定宽度。
标记:
CSS:
Try floating the wrapper div (not the object itself) and give it a width.
Markup:
CSS: