因此,我正在制作一个“动漫”网站(这只是我尝试学习基本代码的原因),我需要添加一个与屏幕右侧对齐的chatango框(我使用了iframe标签对此进行了尝试,该标签确实起作用了,但它弹出了框在页脚的错误位置显示错误,提示“找不到目录”)我不太确定该怎么做,有人可以给我一个例子,告诉我贴在哪里吗?
{“ 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}}
最佳答案
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
。如果您仍然遇到困难,请发表评论。关于javascript - 向启动问题添加chatango,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/34245385/