<form>
存在時,
display: inline;
失敗顯示:內聯;當<form>存在時失敗
它沒有並排排列。
ul#custom {
float:right;
width:100%;
padding:0;
margin:0;
list-style-type:none;
}
#custom li{
display: inline;
}
<ul id="custom"><li>
\t \t <form name="form1" method="post" action="checklogin.php">
\t \t \t \t <label for="field_1">Login ID (Your Email)</label>
\t \t \t \t <input type="text" name="myusername" id="field_1" class="short" />
\t \t \t \t <label for="field_1">Password</label>
\t \t \t \t <input type="password" name="mypassword" id="field_1" class="short" />
\t \t \t \t <input type="submit" class="submit" value="Login" />
\t \t \t </form>
</li> <li> **should appear right beside the login form not under it. **</li></ul>
嗯,我在本地測試了我的更改,它確實有效。你還有其他事情正在發生。 – cletus 2009-10-23 03:53:01