第二个meteor学习项目——(css和main.html)
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了第二个meteor学习项目——(css和main.html),小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含3532字,纯文字阅读大概需要6分钟。
内容图文
![第二个meteor学习项目——(css和main.html)](/upload/InfoBanner/zyjiaocheng/1289/ea7cb85f1a3c48f6b517daa5517ed195.jpg)
一、搞定 CSS
CSS 文件将被 Meteor 自动加载并简化。因此,不同于其它的静态文件都被放置于/public 文件夹,请将 CSS
文件放入/client 文件夹。请创建一个client/stylesheets/ 文件夹并将以下style.css 文件放置入内。
![技术分享](/upload/getfiles/default/2022/11/8/20221108045111620.jpg)
![技术分享](/upload/getfiles/default/2022/11/8/20221108045111710.jpg)
.grid-block, .main, .post, .comments li, .comment-form { background: #fff; border-radius: 3px; padding: 10px; margin-bottom: 10px; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15); -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15); } body { background: #eee; color: #666666; } #main { position: relative; } .page { position: absolute; top: 0px; width: 100%; } .navbar { margin-bottom: 10px; } /* line 32, ../sass/style.scss */ .navbar .navbar-inner { border-radius: 0px 0px 3px 3px; } #spinner { height: 300px; } .post { /* For modern browsers *//* For IE 6/7 (trigger hasLayout) */ *zoom: 1; position: relative; opacity: 1; } .post:before, .post:after { content: ""; display: table; } .post:after { clear: both; } .post.invisible { opacity: 0; } .post.instant { -webkit-transition: none; -moz-transition: none; -o-transition: none; transition: none; } .post.animate{ -webkit-transition: all 300ms 0ms; -moz-transition: all 300ms 0ms ease-in; -o-transition: all 300ms 0ms ease-in; transition: all 300ms 0ms ease-in; } .post .upvote { display: block; margin: 7px 12px 0 0; float: left; } .post .post-content { float: left; } .post .post-content h3 { margin: 0; line-height: 1.4; font-size: 18px; } .post .post-content h3 a { display: inline-block; margin-right: 5px; } .post .post-content h3 span { font-weight: normal; font-size: 14px; display: inline-block; color: #aaaaaa; } .post .post-content p { margin: 0; } .post .discuss { display: block; float: right; margin-top: 7px; } .comments { list-style-type: none; margin: 0; } .comments li h4 { font-size: 16px; margin: 0; } .comments li h4 .date { font-size: 12px; font-weight: normal; } .comments li h4 a { font-size: 12px; } .comments li p:last-child { margin-bottom: 0; } .dropdown-menu span { display: block; padding: 3px 20px; clear: both; line-height: 20px; color: #bbb; white-space: nowrap; } .load-more { display: block; border-radius: 3px; background: rgba(0, 0, 0, 0.05); text-align: center; height: 60px; line-height: 60px; margin-bottom: 10px; } .load-more:hover { text-decoration: none; background: rgba(0, 0, 0, 0.1); } .posts .spinner-container{ position: relative; height: 100px; } .jumbotron{ text-align: center; } .jumbotron h2{ font-size: 60px; font-weight: 100; } @-webkit-keyframes fadeOut { 0% {opacity: 0;} 10% {opacity: 1;} 90% {opacity: 1;} 100% {opacity: 0;} } @keyframes fadeOut { 0% {opacity: 0;} 10% {opacity: 1;} 90% {opacity: 1;} 100% {opacity: 0;} } .errors{ position: fixed; z-index: 10000; padding: 10px; top: 0px; left: 0px; right: 0px; bottom: 0px; pointer-events: none; } .alert { animation: fadeOut 2700ms ease-in 0s 1 forwards; -webkit-animation: fadeOut 2700ms ease-in 0s 1 forwards; -moz-animation: fadeOut 2700ms ease-in 0s 1 forwards; width: 250px; float: right; clear: both; margin-bottom: 5px; pointer-events: auto; }
二、修改client文件夹下面的main.html
![技术分享](/upload/getfiles/default/2022/11/8/20221108045111620.jpg)
![技术分享](/upload/getfiles/default/2022/11/8/20221108045111710.jpg)
1 < head > 2 < title >Microscope</title> 3</head> 4<body> 5<div class="container"> 6<header class="navbar navbar-default" role="navigation"> 7<div class="navbar-header"> 8<a class="navbar-brand" href="/">Microscope</a> 9</div>10</header>11<div id="main">12{{> postsList}} 13</div>14</div>15</body>
就先这么多吧,下一节做模板文件
原文:http://www.cnblogs.com/wonderhow2/p/6340901.html
内容总结
以上是互联网集市为您收集整理的第二个meteor学习项目——(css和main.html)全部内容,希望文章能够帮你解决第二个meteor学习项目——(css和main.html)所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。