簡體   English   中英

如何在HTML中使用float:left和list-style-type? 我有一個無法正常工作的代碼float:left和list-style-type

[英]How to use float:left and list-style-type in html? I have a code which is not working float:left and list-style-type

我想使用float將按鈕列表位置放置在左側:left和list-style-type = none,但不知何故不起作用。

//CSS
#tus{margin:5px;padding:0;width:640px;height:auto;}
#tus ul{margin:0px;padding:0;height:auto;width:640px;}
#tus li{margin:0px;padding:0;list-style-type:none;float: left;}

// HTML

<div is="tus" class="">
  <ul class="">
    <li><input value="1" type="button" id="button"onclick="sanal_klavye('1','','','','');"></li>
  </ul>
</div>

它看起來像是一個錯字。 is =應該是id =

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM