我正在设计div和span标签&我用这两个tages创建了表。我想在div中设置特定跨度的位置。怎么做?
下面是我的设计
<html>
<head></head>
<body>
<div style="margin-left:10px;margin-right:10px;">
<div style="height:30px;">
<span class="name">A.B. Enterprises</span>
<span>(42100001)</span>
<span>OS : Cr.</span>
<span style="float:right; left:0px; top:0px;position:relative;">
<span><img src='C:/Documents and Settings/priyanka/Desktop/BlueColor.gif' alt="" /></span>
<span ><img src='C:/Documents and Settings/priyanka/Desktop/BlueColor.gif' alt="" /></span>
<span><img src='C:/Documents and Settings/priyanka/Desktop/BlueColor.gif' alt="" /></span>
<span><img src='C:/Documents and Settings/priyanka/Desktop/BlueColor.gif' alt="" /></span>
</span>
</div>
<div>
<span>Supriya Dye Chem</span>
<span>Turn Over : Cr.</span>
</div>
<div>
<span>Indrabhan Pandey</span>
<span>(Mumbai1</span><span>,Mumbai1)</span>
</div>
<div><hr /></div>
</div>
</body>
</html>
感谢
答案 0 :(得分:4)
<div style="position:relative;">
<span style="position:absolute: top:0px; left:0px;"></span>
</div>
答案 1 :(得分:0)
<div class="your_div">
<span style="float:left; left:0px; top:2px;"></span>
</div>
您可以使用“左”和“顶部”值设置播放位置
答案 2 :(得分:0)
我不确定你到底在寻找什么,希望这有任何帮助:http://jsfiddle.net/Pq7LC/41/