简体   繁体   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

I want to make a button list position to the left side using float: left and list-style-type=none but somehow it's not working. 我想使用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 // HTML

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

it just looks like a typo. 它看起来像是一个错字。 is= should be id= is =应该是id =

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM