如何在布局不变的前提下,让层中的多个层居中_html/css_WEB-ITnose

html教程评论571 views阅读模式

如题,我在一个html中 写入一个层 再在里面写入大量层。如何让那些层在布局不变的前提下居中?

以下是部分层的样式


#mindb{

background-image:url(images/main_29.gif);

width:8px;

height:29px;

position:absolute;

left:89px;

top:480px;

}

#mindc{

background-image:url(images/main_30.gif);

width:247px;

height:29px;

position:absolute;

left:97px;

top:480px;

}

#mindd{

background-image:url(images/main_32.gif);

width:11px;

height:29px;

position:absolute;

left:344px;

top:480px;

}

回复讨论(解决方案)

额...好吧 我已经知道了.....

恭喜你又进步了

自己解决 很好

企鹅博客
  • 本文由 发表于 2019年9月9日 22:30:03
  • 转载请务必保留本文链接:https://www.qieseo.com/372583.html

发表评论