发布网友
共6个回答
热心网友
<div style="position:absolute;left:26px;top:14px;width:99px;height:28px;z-index:1;">变成行间样式</div> 这样写,不过这样写的弊端就是以后修改起来,比较麻烦了
热心网友
style="position: absolute;left:26px;
top:14px;
width:99px;
height:28px;
z-index:1; "
不怕麻烦就这么来吧 感觉很扯淡的方式
热心网友
<style type="text/css">
<!--
#Layer1 {
position:absolute;
left:26px;
top:14px;
width:99px;
height:28px;
z-index:1;
}
-->
</style>
<div id="Layer1"></div>
代码如上,如何把样式直接写到<div id="Layer1"></div>里面
热心网友
<div style="position:absolute;left:26px;top:14px;width:99px;height:28px;z-index:1;"></div>
热心网友
<div id="Layer1" style="position:absolute;left:26px;top:14px;width:99px;height:28px;z-index:1;"></div>
热心网友
<div id="Layer1" style="position:absolute;left:26px;top:14px;height:28px;z-index:1;"></div>
还是<div id="Layer1"><style type="text/css">
<!--
#Layer1 {
position:absolute;
left:26px;
top:14px;
width:99px;
height:28px;
z-index:1;
}
-->
</style></div>