-1
在此代碼:爲什麼我可以覆蓋`li`的字體顏色而不是`P`標籤的內容?
...
<div class="job-overview no-company-desc">
<h2 class="job-overview-title">Overview</h2>
<p>Jamit’s client is looking for a Senior Software Engineer constantly iterating and pushing releases into production.</p>
<p><strong>Qualifications:</strong></p>
<ul>
<li>Experience leading a team of developers by example – following excellent coding habits and best practices</li>
<li>Experience in an Agile software development environment in a web context</li>
<li>A thorough understanding of how business needs drive product features</li>
<li>Demonstrated expertise with the entire software development life cycle</li>
</ul>
</div>
有各種不同的CSS樣式表,如通過我嘗試把我的CSS代碼,最後在頭對其進行覆蓋,即
<style type="text/css">
p { color: blue; }
li { color: blue; }
</style>
這使得LI
名單項目爲藍色,但不包含P
內容。任何關於使P
內容變藍的建議?
必須有更多的CSS ..它在這裏工作http://jsfiddle.net/cn9Nd/ –
嘗試使CSS選擇器更具體。 – sushain97
我試過'.job-overview no-company-desc p {color:blue; ''但它沒有幫助。 –