I am having problem keeping checkbox and text in the same line.
这是 HTML 代码:
<span class="list-item">
<label>
<input type="checkbox" name="payment[]" value="Some payment"> Some payment
</label>
</span>
Run Code Online (Sandbox Code Playgroud)
我怎样才能做到这一点。元素上唯一能提供所需效果的显示属性是 display:display: -webkit-box; that only works in Chrome.
非常感谢任何帮助。问候。
此 HTML 以您想要的方式呈现:
<span class="list-item">
<label>
<input type="checkbox" name="payment[]" value="Some payment"> Some payment
</label>
</span>
Run Code Online (Sandbox Code Playgroud)
您是否可以对其应用其他样式?
| 归档时间: |
|
| 查看次数: |
8461 次 |
| 最近记录: |