Maison >interface Web >tutoriel HTML >如何在布局不变的前提下,让层中的多个层居中_html/css_WEB-ITnose

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBoriginal
2016-06-24 12:09:591278parcourir

如题,我在一个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;
}


回复讨论(解决方案)

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

恭喜你又进步了

自己解决 很好

Déclaration:
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn