跟著老師一起去敲的,但是內(nèi)容不能顯示成排
?*{margin:0 ;padding:0;list-style:none; font-size:12px}
? ?.notice{width: 298px; height: 98px;margin:10px;border:1px solid #eee;overflow:hidden}
? ?.notice-tit{height:27px;position:relative;background:#f7f7f7;}
? ?.notice-tit ul{position: absolute;width:301px;left:-1px;}
? ?.notice-tit li{folat:left;width:58px;height: 26px;line-height: 26px;text-align:center ?;
? ? ? ?overflow:hidden;background: #ffffff;border-bottom: 1px solid #eeeeee ;padding:0 1px
? ? ? ? ?}
? ?.notice li a:link, .notice-tit li a:visited{text-decoration:none;color: #333333}
? ?.notic li a:hover{color: #FF9900}
? ?.notice li .select{background: #ffffff;border-bottom-color: #ffffff;
? ?border-right: 1px solid #eeeeee;border-left: 1px solid #eeeeee;padding: 0px; font-weight:bold}
? ?.notice-con .mod{margin:10px}
? ?notice-con .mod ul li{float:left;width:143px;height:26px;overflow: hidden;}
</style>
<script type="text/javascript">
2017-08-18
??.notice-tit li{folat:left;}這拼錯(cuò)了 ?是 float:left;
2017-08-21
li默認(rèn)顯示都是換行的,所以要浮動(dòng),浮動(dòng)以后就會(huì)顯示在一排。所以你還是好好檢查一下代碼比較好。