亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

給Ol的序號設置樣式,怎么做?

給Ol的序號設置樣式,怎么做?

roastwind 2016-03-19 20:16:36
<!DOCTYPE?HTML> <html> <head> <meta?http-equiv="Content-Type"?content="text/html;?charset=utf-8"> <title>?p標簽</title> <style> ????*{padding:0px;margin:0px;} ????img{width:80px;} ????body{font-size:14px;} ????.color-b{color:blue;} ????.top{border:1px?solid?gray;} ????.top-title{text-indent:1em;background-color:yellow;} ????.top-content{background-color:rgb(181,?177,?61);?padding:?5px?0px;} ????.top-content?.top-item{?border-bottom:1px?gray?dashed;line-height:1.5em;?margin:?3px?30px;clear:both;} ????.top-content?.active{background-color:white;?padding:10px?0px;height:6em;} ????.top-content?.top-item?div{float:left;} ????.top-content?.top-item?dl{margin-left:5px;float:left;} ????.top-content?.top-item?dl?dd{margin-top:10px;} ????.top-content?.top-item?dl?dd?p{overflow:hidden;width:150px;white-space:nowrap;text-overflow:ellipsis;} </style> </head> <body> ????<div?class="top"> ????<h3?class="top-title">新書熱賣</h3> ????<ol?class="top-content"> ????????<li?class="top-item?active"?type="1"> ????????????<div> ????????????????<img?src="http://f.hiphotos.baidu.com/image/h%3D200/sign=d9c2d17b1a950a7b6a3549c43ad0625c/14ce36d3d539b600af3985faee50352ac75cb78c.jpg"/>???? ????????????</div> ????????????<dl> ????????????????<dt?class="color-b">不省心(馮小剛)</dt> ????????????????<dd> ????????????????????<p>作者:馮小剛</p> ????????????????????<p>出版社:長江文藝出版社</p> ????????????????????<p>出版時間:2013年09月</p> ????????????????</dd> ????????????</dl> ????????</li> ????????<li?class="top-item?color-b">我承認我不曾歷經滄桑</li> ????????<li?class="top-item?color-b">不為遇見,只為遠方</li> ????????<li?class="top-item?color-b">站在兩個世界的邊緣</li> ????</ol> ????</div> ????<ol> ????????<li>我的第一個列表信息。</li> ????</ol> ????<script> ????????//?這個是張大大的關于ol的博客,搜藏一下 ????????//?http://www.zhangxinxu.com/wordpress/2009/12/html-css列表元素uloldl的研究與應用/ ????</script> </body> </html>這是代碼,實在整不動了,這是要達到的效果;通過ol的有序,然后給ol的序號設置樣式,上面ol中li序號放到里面是:list-style-position: inside,不過這樣第一行就亂套了;求解答
查看完整描述

2 回答

已采納
?
幕布斯6393831

TA貢獻111條經驗 獲得超40個贊

或者加個 <i>標簽。。

查看完整回答
反對 回復 2016-03-20
  • roastwind
    roastwind
    好吧,問過同事,好像沒有辦法給OL的序號設置樣式,達到圖中的效果,這個是這個demo的問題來源:http://www.xianlaiwan.cn/code/289
?
幕布斯6393831

TA貢獻111條經驗 獲得超40個贊

用圖標,

查看完整回答
反對 回復 2016-03-20
  • 2 回答
  • 2 關注
  • 2781 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號