【发布时间】:2014-07-07 07:01:14
【问题描述】:
当我什么都不做时,我的框/边框会留在它周围,但是当我写 float: left;它开箱即用/边界周边我如何保持它。
抱歉,无法发布需要更多代表的图片。
<div style="float: left; margin: 5px;"><embed width="220" height="145" src="youtube.com/v/XGSy3_Czz8k"; type="application/x-shockwave-flash"></div> <div style="float: left; margin: 5px;"><embed width="220" height="145" src="youtube.com/v/XGSy3_Czz8k"; type="application/x-shockwave-flash"></div>
【问题讨论】:
-
首先
float属性没有center值。其次,你不能复制一个简单的DEMO。 -
你的职位是什么?固定的,绝对的?显示器呢?如果你能澄清这将是有帮助的。
-
-
.inner-border { position: relative;} .inner-border:before { position: Absolute; }
-
制作一个 jsfiddle 并解释你到底想要什么?
标签: javascript jquery html css youtube