Menu
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE
     ❯   

架构网页

如何创建一个网页

如何创建一个完全响应式的网页,在所有设备(台式机、笔记本电脑、平板电脑和手机)上都能很好地显示

Archtect Template

创建一个骨架

Architecture

BR 建筑师

示例

<!-- 导航栏(位于顶部) -->
<div class="w3-top w3-bar w3-white w3-wide w3-padding w3-card">
<a href="#home" class="w3-bar-item w3-button"><b>BR</b> 建筑师</a>

<!-- 将链接浮动到右侧。在小屏幕上隐藏它们 -->
<div class="w3-right w3-hide-small">
<a href="#projects" class="w3-bar-item w3-button">项目</a>
<a href="#about" class="w3-bar-item w3-button">关于</a>
<a href="#contact" class="w3-bar-item w3-button">联系</a>
</div>

</div>

<!-- 页面开始 -->
<div id="home" class="w3-content" style="max-width:1564px">

<!-- 显示容器中的图片 -->
<div class="w3-display-container w3-content" style="max-width:1500px;">
<img class="w3-image" src="/w3images/architect.jpg" alt="建筑" width="100%">
<div class="w3-display-middle w3-margin-top w3-center">
<h1 class="w3-xxlarge w3-text-white w3-wide">
<span class="w3-padding w3-black w3-opacity-min"><b>BR</b></span>
<span class="w3-hide-small w3-text-light-grey">建筑师</span>
</h1>
</div>
</div>

<!-- 页面结束 -->
</div>

自己试试 »



添加项目

项目

夏季别墅
House
砖房
House
翻新
House
谷仓房
House
夏季别墅
House
砖房
House
翻新
House
谷仓房
House

示例

<!-- 项目 -->
<div id="projects" class="w3-container w3-padding-32">
<h2 class="w3-border-bottom w3-border-light-grey w3-padding-16">项目</h2>
</div>

<div class="w3-row-padding">

<div class="w3-col l3 m6 w3-margin-bottom">
<div class="w3-display-container">
<div class="w3-display-topleft w3-black w3-padding">夏季</div>
<img src="/w3images/house5.jpg" alt="房屋" style="width:100%">
</div>
</div>

<div class="w3-col l3 m6 w3-margin-bottom">
<div class="w3-display-container">
<div class="w3-display-topleft w3-black w3-padding">砖房</div>
<img src="/w3images/house2.jpg" alt="房屋" style="width:100%">
</div>
</div>

<div class="w3-col l3 m6 w3-margin-bottom">
<div class="w3-display-container">
<div class="w3-display-topleft w3-black w3-padding">翻新</div>
<img src="/w3images/house3.jpg" alt="房屋" style="width:100%">
</div>
</div>

<div class="w3-col l3 m6 w3-margin-bottom">
<div class="w3-display-container">
<div class="w3-display-topleft w3-black w3-padding">谷仓房</div>
<img src="/w3images/house4.jpg" alt="房屋" style="width:100%">
</div>
</div>

</div>

自己试试 »

添加关于

关于

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

John

John Doe

首席执行官兼创始人

Phasellus eget enim eu lectus faucibus vestibulum. Suspendisse sodales pellentesque elementum.

Jane

Jane Doe

建筑师

Phasellus eget enim eu lectus faucibus vestibulum. Suspendisse sodales pellentesque elementum.

Mike

Mike Ross

建筑师

Phasellus eget enim eu lectus faucibus vestibulum. Suspendisse sodales pellentesque elementum.

Dan

Dan Star

建筑师

Phasellus eget enim eu lectus faucibus vestibulum. Suspendisse sodales pellentesque elementum.

示例

<!-- 关于 -->
<div id="about" class="w3-container w3-padding-32">
<h2 class="w3-border-bottom w3-border-light-grey w3-padding-16">关于</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Excepteur sint
occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco
laboris nisi ut aliquip ex ea commodo consequat.
</p>
</div>

<div class="w3-row-padding w3-grayscale">

<div class="w3-col l3 m6 w3-margin-bottom">
<img src="/w3images/team2.jpg" alt="John" style="width:100%">
<h3>John Doe</h3>
<p class="w3-opacity">首席执行官兼创始人</p>
<p>Phasellus eget enim eu lectus faucibus vestibulum. Suspendisse sodales pellentesque elementum.</p>
<p><button class="w3-button w3-light-grey w3-block">联系</button></p>
</div>

<div class="w3-col l3 m6 w3-margin-bottom">
<img src="/w3images/team1.jpg" alt="Jane" style="width:100%">
<h3>Jane Doe</h3>
<p class="w3-opacity">建筑师</p>
<p>Phasellus eget enim eu lectus faucibus vestibulum. Suspendisse sodales pellentesque elementum.</p>
<p><button class="w3-button w3-light-grey w3-block">联系</button></p>
</div>

<div class="w3-col l3 m6 w3-margin-bottom">
<img src="/w3images/team3.jpg" alt="Mike" style="width:100%">
<h3>Mike Ross</h3>
<p class="w3-opacity">建筑师</p>
<p>Phasellus eget enim eu lectus faucibus vestibulum. Suspendisse sodales pellentesque elementum.</p>
<p><button class="w3-button w3-light-grey w3-block">联系</button></p>
</div>

<div class="w3-col l3 m6 w3-margin-bottom">
<img src="/w3images/team4.jpg" alt="Dan" style="width:100%">
<h3>Dan Star</h3>
<p class="w3-opacity">建筑师</p>
<p>Phasellus eget enim eu lectus faucibus vestibulum. Suspendisse sodales pellentesque elementum.</p>
<p><button class="w3-button w3-light-grey w3-block">联系</button></p>
</div>

</div>

自己试试 »

添加联系

联系

让我们取得联系,谈谈你的下一个项目

示例

<!-- 联系部分 -->
<div id="contact" class="w3-container w3-padding-top-32">

<h2 class="w3-border-bottom w3-border-light-grey w3-padding-16">联系</h2>
<p>让我们取得联系,谈谈你的下一个项目</p>

<form action="/action_page.php" target="_blank">
<input class="w3-input w3-border" type="text" placeholder="姓名" required name="Name">
<input class="w3-input w3-section w3-border" type="text" placeholder="电子邮件" required name="Email">
<input class="w3-input w3-section w3-border" type="text" placeholder="主题" required name="Subject">
<input class="w3-input w3-section w3-border" type="text" placeholder="评论" required name="Comment">
<button class="w3-button w3-black w3-section" type="submit">
<i class="fa fa-paper-plane"></i> 发送消息
</button>
</form>

<img src="/w3images/map.jpg" class="w3-image" style="width:100%">

<footer class="w3-center w3-black w3-panel w3-padding-16">
<p>由 <a href="https://w3schools.org.cn/w3css/default.asp" title="W3.CSS" target="_blank" class="w3-hover-text-green">w3.css</a> 提供支持</p>
</footer>
</div>

自己试试 » 尝试完整版 »


×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
[email protected]

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
[email protected]

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy.

Copyright 1999-2024 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.