飞驰的火车(原版)edit icon

Fork(复制)
下载
嵌入
BUG反馈
index.html
现在支持上传本地图片了!
index.html
            
            <html>
<title>科技节——人工智能绘画 </title>
   <style>
        body {
            font-family: Arial, sans-serif;
            text-align: center;
            margin: 0;
            padding: 0;
            background-color: #f4f4f4;
            background-image: url('background.jpg');
            background-size: cover; /* 背景图片覆盖整个页面 */
            background-position: center; /* 背景图片居中 */
        }
        header {
            color: white;
            padding: 20px 0;
            text-align: center;
        }

        h1 {
            margin: 0;
            font-size: 3.9em; /* 增大标题字体 */
            color="#4169E1";
        }

        h2 {
            color: yellow; /* 副标题颜色与头部背景色对比 */
            margin-top: 10px;
            font-size: 1.5em; /* 增大副标题字体 */
        }

        .container {
            max-width: 1200px;
            margin: 20px auto;
            padding: 0 20px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* 添加容器阴影效果 */
        }

        .gallery {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 20px;
            margin-top: 40px;
        }

        .gallery-item {
            flex: 1 1 calc(25% - 20px);
            box-sizing: border-box;
            text-align: center;
            background-color: white; /* 项目卡片背景颜色 */
            padding: 20px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 卡片阴影效果 */
            border-radius: 8px; /* 卡片圆角 */
        }

        .gallery-item img {
            max-width: 100%;
            height: auto;
            border: 2px solid #ddd; /* 图片边框 */
            border-radius: 8px; /* 图片圆角 */
        }

    .shadowed-text {
  text-shadow: 2px 2px 2px #000000; /* 水平偏移 垂直偏移 模糊半径 颜色 */
    }

        .gallery-item a {
            text-decoration: none;
            color: #333;
        }
    .gallery-item:hover {
            transform: scale(1.05); /* 鼠标悬停时放大图片 */
        }
        .gallery-item a:hover {
            text-decoration: underline;
        }

        .project-name {
            margin-top: 10px;
            font-size: 1.2em;
        }

        .project-description {
            margin-top: 5px;
            font-size: 0.9em;
            color: #666;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .gallery-item {
                flex: 1 1 calc(50% - 20px); /* 在小屏幕上每行显示两个项目 */
            }
        }

        @media (max-width: 480px) {
            .gallery-item {
                flex: 1 1 100%; /* 在更小的屏幕上每行显示一个项目 */
            }

            h1 {
                font-size: 2em; /* 在小屏幕上减小标题字体 */
            }

            h2 {
                font-size: 1.2em; /* 在小屏幕上减小副标题字体 */
            }
        }
    </style>

<body>
<h1>飞驰的火车</h1>
<img src='https://img0.baidu.com/it/u=698929698,422693771&fm=253&fmt=auto&app=138&f=JPEG?w=1303&h=800' width=500>
<a href='https://xxxxxx'>更多AI绘画作品</a>
</body>
</html>
        
编辑器加载中
预览
控制台