2015-02-11 50 views
0

我試圖改變跨度班「簡介」一切有這些設置:跨度類不改變任何東西

span.Intro{ 
display: inline-block; 
margin-left:0px; 
font-family: 'Lucida Sans Unicode'; 
line-height: 0px; 
height: 25px; 
color: grey; 
list-style:square; 
font-size: 150%; 
padding-left: 0px;} 

的我試圖做到這一點在哪一行的例子:

<span class ="Intro" <ul><li><b>History</b></li></ul></span>

這個以前工作,但我今天打開我的文件,它不? 結果是目前只是一個正常的格式化圓圈大膽的點,任何幫助?

編輯:解決了,所有的幫助

+3

張貼的標記無效,錯過了關閉的角度大括號。此外,''是一個內聯包裝器,它不是用來包裝塊級元素,如列表。 – 2015-02-11 17:30:28

+0

@Corey在你的樣式表(CSS)的'span.Intro'之後放置一個'*'。它應該看起來像這樣:'span.Intro *' – bluejamesbond 2015-02-11 17:31:27

+0

您的開口範圍標記沒有關閉大括號的朋友:) – Bhagya 2015-02-11 17:32:33

回答

0

感謝您有:

<span class ="Intro" <ul><li><b>History</b></li></ul></span> 

極品:

<span class ="Intro" ><ul><li><b>History</b></li></ul></span> 
+0

只做了改變,它仍然不改變文本? – NewCoder2015 2015-02-11 17:35:16

+0

檢查此http://jsfiddle.net/bkLhqbnm/ – Maris 2015-02-11 17:37:10

+0

沒有運氣? http://postimg.org/image/45xdzmuft/(也將CSS更改爲你的) – NewCoder2015 2015-02-11 17:40:14

0

HTML標記

<span class ="Intro"><ul><li>History></li></ul></span> 

CSS風格

span.Intro ul li{ 
    margin-left:0px; 
    font-family: 'Lucida Sans Unicode'; 
    line-height: 0px; 
    color: grey; 
    list-style:square; 
    font-size: 150%; 
    font-weight:bold; 
} 
0

將「span.Intro」替換爲您的css文件中的「span.Intro ul」。

相關問題