添加chatango到bootstrap问题

时间:2015-12-12 21:48:10

标签: javascript jquery html css twitter-bootstrap

所以即时制作一部动漫"网站(这只是我试图学习基本代码)我需要添加一个对齐在屏幕右侧的聊天框(我尝试使用iframe标签,它做了一些工作,但它弹出了错误的位置在框中页脚错误说"找不到目录")我不确定该做什么可以有人给我一个例子并告诉我在哪里坚持下去? {"处理":" absolutionanime""拱":" JS""样式" {&#34 ; A":" CC0000"" b":100," C":" FFFFFF"" d&# 34;:" FFFFFF"" K":" CC0000"" L":" CC0000"&# 34; M":" CC0000"" N":" FFFFFF"" p":" 10&#34 ;," q":" CC0000"" R":100," POS":&#34峰; br",& #34; CV":1," CVBG":" CC0000"" CVW":200," CVH":30, "股票":1," fwtickm":1}}

1 个答案:

答案 0 :(得分:0)

float: right;如下所示:

    <div style="float: right;"><script id="cid0020000161037121510" data-cfasync="false" async src="http://st.chatango.com/js/gz/emb.js" style="width: 300px;height: 500px;">{"handle":"absolutionanime","arch":"js","styles":{"a":"ffffff","b":100,"e":"ffffff","h":"ffffff","l":"cccccc","m":"dadada","q":"ffffff","r":100,"sbc":"bbbbbb","fwtickm":1}}</script></div>

或者,定义保证金:

    <div style="margin-left: 1050px;"><script id="cid0020000161037121510" data-cfasync="false" async src="http://st.chatango.com/js/gz/emb.js" style="width: 300px;height: 500px;">{"handle":"absolutionanime","arch":"js","styles":{"a":"CC0000","b":100,"c":"FFFFFF","d":"FFFFFF","k":"CC0000","l":"CC0000","m":"CC0000","n":"FFFFFF","p":"10","q":"CC0000","r":100,"pos":"br","cv":1,"cvbg":"CC0000","cvw":200,"cvh":30,"ticker":1,"fwtickm":1}}</script></div>

让我解释一下。我们使用<div>来定义部分或部门。我们使用margin-left从左边创建边距。例如,您希望自己位于底部,可以使用margin-top将其设置在底部。如果您只想在整个部分创建边距,请使用margin。评论你是否还有困难。