云主机测评网云主机测评网云主机测评网

云主机测评网
www.yunzhuji.net

HTML 按钮代码用于 Primefaces 的文本编辑器

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF8">
    <meta name="viewport" content="width=devicewidth, initialscale=1.0">
    <title>Responsive Web Page</title>
    <style>
        * {
            boxsizing: borderbox;
        }
        body {
            margin: 0;
            fontfamily: Arial, sansserif;
        }
        .header {
            backgroundcolor: #f1f1f1;
            padding: 20px;
            textalign: center;
        }
        .nav {
            display: flex;
            justifycontent: spacearound;
            backgroundcolor: #333;
        }
        .nav a {
            display: block;
            color: white;
            textalign: center;
            padding: 14px 16px;
            textdecoration: none;
        }
        .nav a:hover {
            backgroundcolor: #ddd;
            color: black;
        }
        .main {
            display: flex;
            flexwrap: wrap;
            padding: 0 4px;
        }
        .column {
            flex: 50%;
            padding: 5px;
        }
        .column img {
            margintop: 8px;
            width: 100%;
            padding: 10px;
        }
        @media screen and (maxwidth: 800px) {
            .column {
                flex: 50%;
            }
        }
        @media screen and (maxwidth: 600px) {
            .column {
                flex: 100%;
            }
        }
    </style>
</head>
<body>
    <div class="header">
        <h1>Responsive Web Page</h1>
    </div>
    <div class="nav">
        <a href="#">Home</a>
        <a href="#">About</a>
        <a href="#">Services</a>
        <a href="#">Contact</a>
    </div>
    <div class="main">
        <div class="column">
            <img src="https://via.placeholder.com/300x200" alt="Image 1">
            <img src="https://via.placeholder.com/300x200" alt="Image 2">
        </div>
        <div class="column">
            <img src="https://via.placeholder.com/300x200" alt="Image 3">
            <img src="https://via.placeholder.com/300x200" alt="Image 4">
        </div>
    </div>
</body>
</html>
(图片来源网络,侵删)
打赏
版权声明:主机测评不销售、不代购、不提供任何支持,仅分享信息/测评(有时效性),自行辨别,请遵纪守法文明上网。
文章名称:《HTML 按钮代码用于 Primefaces 的文本编辑器》
文章链接:https://www.yunzhuji.net/internet/155552.html

评论

  • 验证码