Hello World -- CSS应用

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Hello World</title>
<style type="text/css" media="all">
   body
   {
      text-align:center;
   margin: 0px auto;
   width:778px;
   background:#3399CC;
   font-family: '宋体','新宋体',arial,verdana,sans-serif;
   font-size:62.5%;
   }
   pre {
 text-indent:0;
 background:#DDDDDD;
 padding:0.5em 1em;
 margin:0;
 margin-right:1em;
 color:blue;
}
a {
 margin: 0px;
 padding:0px;
 border: 0px;
 text-decoration:none; 
}
a:link {
 color: #E66133;
}

a:visited{
 color: #E66133;
}
a:hover{
 color: #637DBC;
 text-decoration: underline;
}

#top
{
 
 
 height: 1.2em;
 background: url(images/bg_top1.gif) #fff repeat-x left top;
 overflow:hidden;
 
}
#css8
{
    padding: 1.2em 0px;
 background: url(images/bg_dot1.gif) #fff repeat left top;
 text-align: left;
 
}
#css8_content
{
    width: 93%;
 margin-right: auto;
 margin-left: auto;
 padding: 1em;
 background: #fff;
}
#css8_title
{
    font-weight: bold;
 margin: 0px 0px 0.5em 0px;
 padding:0.5em 0px 0.5em 1em;
 font-size: 2.4em;
 color: #00A06B;
 border-bottom: solid  #9EA3C1  2px;
}
.css8_sub {
 color: #00A06B;
 font-weight:bold;
 font-size: 1.3em;
 text-align: left;
 padding:1em 2em 0;
 background: url(images/0.gif) #fff no-repeat 1em 74%; 
 
}
.css8_content {
 text-indent:2em;
 font-size:1.3em;
 margin-left:2em;
 padding:1em 6px;
 }
#gotop{
 width: 100%;
 margin: 0px;
 padding: 0px;
 background: #fff;
 height: 2em;
 font-size: 12px;
 text-align: right;
}
#footer
{
    clear: both;
 padding: 0px;
 background: url(images/bg_bottom.gif) #fff repeat left top;
 height: 39px;
 color: #ddd;
}
#copyright
{
  font-size:1.6em;
 color:#667EBE;
}
.box { background: url(images/nt.gif) repeat; }
.tl { background: url(images/tl.gif) no-repeat top left; }
.tr { background: url(images/tr.gif) no-repeat top right; }
.bl { background: url(images/bl.gif) no-repeat bottom left; }
.br { background: url(images/br.gif) no-repeat bottom right; }

</style>
</head>
<body>
<div id="top"></div>
<div id="top1"><img src="images/bg_top.jpg" width="100%" height="121" /></div>
<div id="css8">
  <div id="css8_content">
    <div id="css8_title"> Hello World -- 您的第一个程序 </div>
    <div class="css8_sub">实例</div>
    <div class="box">
      <div class="tl">
        <div class="tr">
          <div class="bl">
            <div  class="css8_content br"> 以下控制台程序是传统“Hello World!”程序的 C# 版,该程序显示字符串 Hello World!。
              <pre>using System;
// A &quot;Hello World!&quot; program in C#
namespace HelloWorld
{
    class Hello
    {
        static void Main()
        {
            System.Console.WriteLine(&quot;Hello World!&quot;);
        }
    }
}</pre>
<blockquote style="background-color:#f7f7f7;border:1px dotted #dedbde;padding:10px;">这是一个引用样式的例子</blockquote>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div id="gotop"><a title="跳到页首" href="#top">返回顶部</a></div>
  </div>
</div>
<div id="footer"></div>
<div id="copyright"> &copy;2007 <a href="http://www.csdn.cn" target="_black" >csdn.cn</a> all rights reserved </div>
</body>
</html>
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Vue-Animate-CSS 是一个 Vue.js 的插件,它可以让你很容易地在 Vue.js 应用中使用 Animate.css 动画库。 要使用 Vue-Animate-CSS,首先需要安装它。你可以通过 npm 安装: ``` npm install vue-animate-css --save ``` 安装完成后,将其添加到你的 Vue.js 应用中。在 main.js 文件中添加以下代码: ```javascript import Vue from 'vue' import VueAnimateCss from 'vue-animate-css' Vue.use(VueAnimateCss) ``` 现在,你可以在 Vue.js 组件中使用 Vue-Animate-CSS 了。假设你想要为某个元素添加 Animate.css 中的 "bounce" 动画,你可以这样写: ```html <template> <div class="animated bounce"> Hello World! </div> </template> ``` 这里的 "animated" 是 Animate.css 中定义的一个 CSS 类,它可以让元素使用 Animate.css 中的动画。而 "bounce" 则是 Animate.css 中的一个动画类,它可以让元素跳动。 你也可以将动画绑定到 Vue.js 的过渡效果中,比如在元素显示和隐藏时使用不同的动画。下面是一个例子: ```html <transition enter-active-class="animated bounceInLeft" leave-active-class="animated bounceOutRight"> <div v-if="show"> Hello World! </div> </transition> ``` 这里我们使用了 Vue.js 的过渡效果,并将 "enter-active-class" 和 "leave-active-class" 属性设置为 Animate.css 中的 "bounceInLeft" 和 "bounceOutRight" 动画类。当元素显示时,它会从左侧弹出;当元素隐藏时,它会向右侧弹出。 以上就是使用 Vue-Animate-CSS 的基本方法。你可以在其官网上查看更多使用方法和示例:https://github.com/asika32764/vue-animate-css

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值