1
我有以下幾點:如何讓我的DIV的所有內容都出現在同一行上?
<ul class="right">
<li>
<div class="hdr_msg">Welcome Visitor!</div>
@Html.ActionLink("Login", "Login", "Users", null, new {
title = "Login",
rel = "nofollow"
})<div class="hdr_msg"> or </div>
@Html.ActionLink("Register", "Register", "Users", null, new {
title = "Register your ID",
rel = "nofollow"
})
</li>
</ul>
這使得下面的源代碼:
<ul class="right">
<li style="float: left">
<div class="hdr_msg">Welcome Visitor!</div>
<a href="/Users/Login" rel="nofollow" title="Login">Login</a><div class="hdr_msg"> or </div>
<a href="/Users/Register" rel="nofollow" title="Register your ID">Register</a>
</li>
</ul>
我的問題是,我想所有的細節出現在同一行。我想看到「歡迎觀衆登錄或註冊!」在同一行,但現在這一切垂直流道