响应式网页设计 - 模板

W3.CSS 网站模板

我们已经用 W3.CSS 框架创建了一些响应模板。

您可以在所有项目中自由修改、保存、共享和使用它们。

艺术模板

Streert Art Template

代码如下:

  1. <!DOCTYPE html>
  2. <html>
  3. <title>W3.CSS Template</title>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <link rel="stylesheet" href="/example/css3/ms.css">
  7. <link href="https://fonts.googleapis.com/css?family=Raleway" rel="stylesheet" type="text/css">
  8. <style>
  9. body {font-family: "Raleway", Arial, sans-serif}
  10. .ms-row img {margin-bottom: -8px}
  11. </style>
  12. <body>
  13. <!-- !PAGE CONTENT! -->
  14. <div class="ms-content" style="max-width:1500px">
  15. <!-- Header -->
  16. <header class="ms-container ms-xlarge ms-padding-24">
  17. <a href="#" class="ms-left ms-button ms-white">MY ART</a>
  18. <a href="#about" class="ms-right ms-button ms-white">About</a>
  19. </header>
  20. <!-- Photo Grid -->
  21. <div class="ms-row">
  22. <div class="ms-half">
  23. <img src="/images/streetart.jpg" style="width:100%">
  24. <img src="/images/streetart2.jpg" style="width:100%">
  25. <img src="/images/streetart5.jpg" style="width:100%">
  26. </div>
  27. <div class="ms-half">
  28. <img src="/images/streetart3.jpg" style="width:100%">
  29. <img src="/images/streetart4.jpg" style="width:100%">
  30. </div>
  31. </div>
  32. <!-- End Page Content -->
  33. </div>
  34. <!-- Footer / About Section -->
  35. <footer class="ms-light-grey ms-padding-64 ms-center" id="about">
  36. <h2>About</h2>
  37. <img src="/images/boy.jpg" class="ms-image ms-padding-32" width="300" height="300">
  38. <form style="margin:auto;width:60%" action="/example/html/action_page.aspx" target="_blank">
  39. <p>Just me, myself and I, exploring the universe of unknownment. I have a heart of love and an interest of lorem ipsum and mauris neque quam blog. I want to share my world with you. Praesent tincidunt sed tellus ut rutrum. Sed vitae justo condimentum, porta lectus vitae, ultricies congue gravida diam non fringilla. Praesent tincidunt sed tellus ut rutrum. Sed vitae justo condimentum, porta lectus vitae, ultricies congue gravida diam non fringilla.</p>
  40. <p class="ms-large ms-text-pink">Do not hesitate to contact me!</p>
  41. <div class="ms-section">
  42. <label><b>Name</b></label>
  43. <input class="ms-input ms-border" type="text" required name="Name">
  44. </div>
  45. <div class="ms-section">
  46. <label><b>Email</b></label>
  47. <input class="ms-input ms-border" type="text" required name="Email">
  48. </div>
  49. <div class="ms-section">
  50. <label><b>Message</b></label>
  51. <input class="ms-input ms-border" required name="Message">
  52. </div>
  53. <button type="submit" class="ms-button ms-block ms-dark-grey">Send</button>
  54. </form>
  55. </footer>


分类导航