Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以使用任何允许我<hr />在特定左边距大小上放置线条的标签吗
<hr />
你有没有尝试过:
<hr style="margin-left:10px;" />
我更喜欢使用 div 并为该 div 添加边框。它比以前更灵活
<div style="border-top:1px solid #000;margin:5px 10px;"></div>
我还没有测试过,但这应该可以正常工作:)
编辑:我用firebug对其进行了测试并编辑了上面的代码。