简体   繁体   中英

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.

//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>

it just looks like a typo. is= should be id=

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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