所以我甚至不知道要在這裏展示什麼代碼,但我只有一個基本的Rails網站使用基金會和託管在Heroku上。我的CSS和一切都一直工作正常,直到我突然增加的一件事情不會工作後,我推動到Heroku的變化,但它正在我的本地主機。這是一個不正常的CSS:CSS不在活的heroku網站上工作,但在localhost上工作
.thankyou {
background-image: url('xxx.jpg');
background-size:cover;
a {
color: white;
text-decoration: underline;
&:hover {
}
}
.question-list {
color: white;
font-family: Muli;
text-align: left;
font-size: 17px !important;
ul {
list-style-type: none;
li {
font-size: 17px !important;
line-height: 22px !important;
}
}
p, ol, ul, td {
font-family: verdana, arial, helvetica, sans-serif;
font-size: 17px;
line-height: 22px;
color:white;
}
}
}
這是該節的HTML:
<section class="hero thankyou">
<div class="row">
<div class="large-12 columns">
<div class="main-wrapper">
<h1>Thank you for your interest! </h1>
<h3 id="putparadise"><em>Check your inbox for the link to the webinar, or click <a href="/">here</a> to return to the home page.</em></h3>
<hr>
</div>
</div>
</div>
<div class="row">
<div class="large-8 columns webinar-video">
<div class="black-box-2">
<h3>6 critical questions that will be addressed in the webinar</h3>
<div class="row">
<div class="large-6 columns question-list">
<ul>
<li><p><strong>1. Type of title</strong><br> What kind of title are you getting? Is it a Land Title, a Conveyance or A Land Lease?</li></p>
<li><p><strong>2. Taxation</strong><br> Capital gains taxes? Property taxes?</li></p>
<li><p><strong>3. Water/Sewer</strong><br> Are the water and sewer regulated or unregulated?</li></p>
</ul>
</div>
<div class="large-6 columns question-list">
<ul>
<li><p><strong>4. Ownership Structure</strong><br> Learn about foreign ownership rights. Should you invest in your personal name vs company name vs IBC?</li></p>
<li><p><strong>5. Vehicle Ownership</strong><br> Can I own a vehicle? Yes... IF your property meets the requirements for vehicle permits.</li></p>
<li><p><strong>6. IRA/401K Eligibility</strong><br> Learn how you can use your retirement savings/funds to invest in Belize.</li></p>
</ul>
</div>
</div>
</div>
</div>
<div class="large-4 columns sidebar">
<div class="black-box-3">
<p><strong>After watching the on-demand webinar, you'll receive an email from us.</strong></p>
<p>Simply reply to that e-mail if you'd like to receive more information,
be sure to ask any specific question you have!
We'll get back to you within 1 working day.</p>
</div>
<div class="row">
<div class="large-12 followup">
</div>
</div>
</section>
據我可以告訴有在Heroku的日誌,但我沒有明顯的錯誤在閱讀它們時不太好,所以如果任何人有任何關於去哪裏看的想法或者可能會發生什麼,那將是非常棒的!
好的,繼續完成項目後,我發現爲我的新版塊添加的CSS也不起作用。當我在我的項目中編譯的CSS文件中搜索'cmd-f'代碼時,它不會出現。什麼可能導致CSS突然停止編譯?
它是否正確加載CSS文件時您瀏覽網頁的源代碼? – 2014-11-04 15:20:43
@MaximeMangel 當我看到在實時頁面上編譯的CSS時,我所提到的CSS都沒有。爲什麼它不能正確推送到heroku? – meganlouise 2014-11-04 15:43:29
你使用了相對路徑或絕對路徑來引用你的css文件嗎? – 2014-11-04 15:46:24