【发布时间】:2014-07-15 14:19:36
【问题描述】:
我试图将样式表与 main.scala.html 页面中的一个页面关联,但是我不确定应该使用什么语法。我尝试使用的样式称为“page_options_2.css”,而我尝试与之关联的页面称为“signup.scala.html”
感谢您的任何建议!
【问题讨论】:
我试图将样式表与 main.scala.html 页面中的一个页面关联,但是我不确定应该使用什么语法。我尝试使用的样式称为“page_options_2.css”,而我尝试与之关联的页面称为“signup.scala.html”
感谢您的任何建议!
【问题讨论】:
在signup.scala.html 的<head> 标记中包含以下内容:
<head>
<link rel="stylesheet" type="text/css" href="your_signup_scala.css">
</head>
或者如果样式差异不是那么大,您可以直接将它们包含在<head>标签中,如下所示:
<style>
hr {color:blue;}
p {margin-left:20px;}
... etc ...
</style>
【讨论】: