Home  >  Article  >  Web Front-end  >  <span>使用{display:block}之后仍然无法设置宽度?_html/css_WEB-ITnose

<span>使用{display:block}之后仍然无法设置宽度?_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:57:261799browse

#span1{
display:block;
weidth:500px;
height:50px;
}
在进行了如上设置之后,span1仍然占满一行,请问大家是什么原因呢?


回复讨论(解决方案)

width写错了。。。。

好尴尬~~~~这么乌龙的错误
谢谢楼上的指正

额。。不谢,我也正在自学前端,有机会交流

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn