【发布时间】:2010-11-23 21:11:42
【问题描述】:
我想内联显示一个<div> 元素,以便它被文本包围。
我的代码是:
<span>Here is some <div class="a"></div> text</span>
比方说,"a" 类定义如下:
.a {
width:20px;
height:20px;
background-color:#f00;
}
结果应该是这样的:
可行吗?感谢您的任何建议。
【问题讨论】: