+ -
当前位置:首页 → 问答吧 → css:* { margin:0; padding:0; word-break:break-all; }这里的*是什么意思?

css:* { margin:0; padding:0; word-break:break-all; }这里的*是什么意思?

时间:2011-08-04

来源:互联网

* { margin:0; padding:0; word-break:break-all; }

/* iFocus style */
#ifocus { width:525px; height:245px; margin:20px; border:1px solid #DEDEDE; background:#F8F8F8; }
#ifocus_pic { display:inline; position:relative; float:left; width:410px; height:225px; overflow:hidden; margin:10px 0 0 10px; }
#ifocus_piclist { position:absolute; }
#ifocus_piclist li { width:410px; height:225px; overflow:hidden; }
#ifocus_piclist img { width:410px; height:225px; }
#ifocus_btn { display:inline; float:right; width:91px; margin:9px 9px 0 0; }
#ifocus_btn li { width:91px; height:57px; cursor:pointer; opacity:0.5; -moz-opacity:0.5; filter:alpha(opacity=50); }
#ifocus_btn img { width:75px; height:45px; margin:7px 0 0 11px; }
#ifocus_btn .current { background: url(images/ifocus_btn_bg.gif) no-repeat; opacity:1; -moz-opacity:1; filter:alpha(opacity=100); }
#ifocus_opdiv { position:absolute; left:0; bottom:0; width:410px; height:35px; background:#000; opacity:0.5; -moz-opacity:0.5; filter:alpha(opacity=50); }
#ifocus_tx { position:absolute; left:8px; bottom:8px; color:#FFF; }
#ifocus_tx .normal { display:none; }

我想把* { margin:0; padding:0; word-break:break-all; }去掉,后面的该怎么改才能保持原样?

作者: comey   发布时间: 2011-08-04

*是所有,有的HTML标签默认自己有边距间距,如果你把这行去掉那就要加body{ margin:0px; padding:px; }
ul,dl,dd,h1,h2,h3,h4,h5,h6,form,p { padding:0; margin:0;}

作者: wasdzxce   发布时间: 2011-08-04

热门下载

更多