HTML5页面(php)——主界面

 


<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>管理员登陆—综合信息管理系统</title>
    <style type="text/css">
        body{
            margin: 0px;
            padding: 0px;
            background-color: rgba(255,255,240,0.8);
            /*background-color: red;*/
        }
        .top{
            position: relative;
            background-color: rgba(46,139,87,0.8);
            width: 100%;
            height: 70px;
            /*border-bottom: dimgrey 1px solid;*/
            margin: 0;
            padding: 0;
        }
        .top .top_logo{
            position: relative;
            background-color: lightslategray;
            width: 400px;
            height: 60px;
            float: left;
            left: 100px;
            position: relative;
            left: 20px;
        }
        .top .top_open{
            position: relative;
            background-color:  rgba(46,139,87,0.4);
            width: 26px;
            height: 26px;
            float: left;
            margin-left: 30px;
            margin-top: 28px;
            padding-top: 5px;
            padding-left: 5px;
            border-radius: 3px;
        }
        .top .top_open:hover{
            background-color:  rgba(46,139,87,1);
            cursor: pointer;
        }
        .top .time{
            position: relative;
            /*background-color: rgba(46,139,87,0.4);*/
            width: 180px;
            height: 20px;
            float: left;
            margin-left:345px;
            margin-top: 35px;
            padding-top: 5px;
            border-radius: 8px;
            font-size: 15px;
            font-family: 幼圆;
            color: white;
            text-align: center;
            letter-spacing: 1px;
        }
        .top .sy{
            /*position: relative;*/
            /*background-color: red;*/
            background-color: rgba(46,139,87,0.4);
            width: 42px;
            height: 40px;
            float: left;
            margin-left:40px;
            margin-top: 18px;
  
  • 4
    点赞
  • 62
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
以下是一个简单的HTML页面,其中包含动态CSS样式代码: ```html <!DOCTYPE html> <html> <head> <title>我的页面</title> <style> body { background-color: #f1f1f1; color: #333; font-family: Arial, sans-serif; } h1 { font-size: 36px; text-align: center; color: #007bff; animation: fadein 2s; } @keyframes fadein { from { opacity: 0; } to { opacity: 1; } } p { font-size: 18px; line-height: 1.5; margin: 20px; animation: slidein 2s; } @keyframes slidein { from { margin-left: 100%; } to { margin-left: 20px; } } </style> </head> <body> <h1>Welcome to my page</h1> <p>This is a sample paragraph. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed luctus est in elit malesuada tristique. Vivamus laoreet, elit nec bibendum congue, lorem quam dictum lorem, in semper mauris mi sed nisl. Nulla facilisi. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Quisque ut est id orci bibendum pretium.</p> </body> </html> ``` 在这个例子中,我们定义了一些CSS样式来设置页面的背景颜色、文本颜色、字体和标题、段落的样式。另外,我们还使用了CSS动画来实现标题和段落的渐变和滑动效果。 在`h1`元素的样式中,我们使用了`animation`属性来定义了一个名为`fadein`的动画,它将标题从不透明度为0的状态淡入到不透明度为1的状态,持续2秒钟。 在`p`元素的样式中,我们使用了`animation`属性来定义了一个名为`slidein`的动画,它将段落从左边滑动到右边,持续2秒钟。 你可以根据自己的需要调整这些样式和动画属性,以创建出符合你需求的动态页面

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值