用纯css实现的html5 logo标志
一个用css实现的html5 Logo,主要用html和css技术实现,例子如下:
源代码下载地址:
css部分代码如下:
<style type="text/css"> html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; outline: 0; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; } blockquote:before, blockquote:after, q:before, q:after { content: ""; } blockquote, q { quotes: "" ""; } body { line-height: 1; color: black; background: white; } caption, th, td { text-align: left; font-weight: normal; } :focus { outline: 0; } table { border-collapse: separate; border-spacing: 0; } ol, ul { list-style: none; } a { font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #666; text-decoration: none; margin: 40px auto 0; display: block; width: 120px; text-align: center; } .html5 { width:345px; height:385px; display:block; margin:100px auto 0; position:relative; } .html5 .icon .text .left { display:block; position:absolute; width:182px; height:400px; } .html5 .icon .text .left .left { display:block; position:absolute; width:40px; height:130px; background:#ebebeb; top:72px; left:82px; -webkit-transform:skew(5deg); -moz-transform:skew(5deg); } .html5 .icon .text .left .top { display:block; position:absolute; width:104px; height:40px; background:#ebebeb; top:72px; left:80px; } .html5 .icon .text .left .middle { display:block; position:absolute; width:96px; height:40px; background:#ebebeb; top:162px; left:88px; } .html5 .icon .text .left .bottom { display:block; position:absolute; width:85px; height:40px; background:#ebebeb; top:261px; left:102px; -webkit-transform::rotate(12deg); -moz-transform:rotate(12deg); } .html5 .icon .text .left .vert { display:block; position:absolute; width:40px; height:70px; background:#ebebeb; top:222px; left:95px; -webkit-transform:skew(5deg); -moz-transform:skew(5deg); } .html5 .icon .text .right { height:400px; width:150px; left:182px; display:block; position:absolute; overflow:hidden; } .html5 .icon .text .right .top { display:block; position:absolute; width:105px; height:40px; background:#fff; top:72px; left:-3px; -webkit-transform:skew(-5deg); -moz-transform:skew(-5deg); } .html5 .icon .text .right .middle { display:block; position:absolute; width:80px; height:40px; background:#fff; top:162px; } .html5 .icon .text .right .right { display: block; position: absolute; width: 40px; height: 130px; background: #ffffff; top: 162px; left: 50px; -webkit-transform: skew(-5deg); -moz-transform: skew(-5deg); } .html5 .icon .text .right .bottom { display: block; position: absolute; width: 85px; height: 40px; background: #ffffff; top: 261px; left: -5px; -webkit-transform: rotate(-12deg); -moz-transform: rotate(-12deg); } .html5 .icon .overlay { height: 400px; width: 150px; left: 182px; position: absolute; display: block; overflow: hidden; } .html5 .icon .overlay .top { width: 160px; height: 300px; top: 28px; left: -35px; display: block; background: #f0652a; position: absolute; -webkit-transform: skew(-5deg); -moz-transform: skew(-5deg); } .html5 .icon .overlay .bottom { position:absolute; top:328px; left:-180px; display:block; border-color:#f0652a transparent transparent; border-style:solid; border-width:35px 140px 0; height:0px; margin:0 10px; width:0; font-size:0; line-height:0; } .html5 .icon .bg .middle { position:absolute; left:132px; background:#e44c27; width:50px; height:355px; display:block; } .html5 .icon .bg .right { position:absolute; left:166px; background:#e44c27; width:170px; height:350px; display:block; -webkit-transform:skew(-5deg); -moz-transform:skew(-5deg); } .html5 .icon .bg .left { position:absolute; left:24px; background:#e44c27; width:170px; height:350px; -webkit-transform:skew(5deg); -moz-transform:skew(5deg); } .html5 .icon .bg .bottom { position:absolute; top:350px; left:30px; display:block; border-color:#e44c27 transparent transparent; border-style:solid; border-width:35px 140px 0; height:0px; margin:0px 10px; width:0; font-size:0; line-height:0; } </style>
html代码如下
<div class="html5"> <div class="icon"> <div class="bg"> <div class="right"></div> <div class="left"></div> <div class="bottom"></div> <div class="middle"></div> </div> <div class="overlay"> <div class="top"></div> <div class="bottom"></div> </div> <div class="text"> <div class="left"> <div class="top"></div> <div class="left"></div> <div class="middle"></div> <div class="bottom"></div> <div class="vert"></div> </div> <div class="right"> <div class="top"></div> <div class="right"></div> <div class="middle"></div> <div class="bottom"></div> </div> </div> </div> </div>
预览效果如下:

热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

AI Hentai Generator
免费生成ai无尽的。

热门文章

热工具

记事本++7.3.1
好用且免费的代码编辑器

SublimeText3汉化版
中文版,非常好用

禅工作室 13.0.1
功能强大的PHP集成开发环境

Dreamweaver CS6
视觉化网页开发工具

SublimeText3 Mac版
神级代码编辑软件(SublimeText3)

热门话题

在 Vue.js 中使用 Bootstrap 分为五个步骤:安装 Bootstrap。在 main.js 中导入 Bootstrap。直接在模板中使用 Bootstrap 组件。可选:自定义样式。可选:使用插件。

HTML定义网页结构,CSS负责样式和布局,JavaScript赋予动态交互。三者在网页开发中各司其职,共同构建丰富多彩的网站。

创建 Bootstrap 分割线有两种方法:使用 标签,可创建水平分割线。使用 CSS border 属性,可创建自定义样式的分割线。

WebDevelovermentReliesonHtml,CSS和JavaScript:1)HTMLStructuresContent,2)CSSStyleSIT和3)JavaScriptAddSstractivity,形成thebasisofmodernWebemodernWebExexperiences。

要调整 Bootstrap 中元素大小,可以使用尺寸类,具体包括:调整宽度:.col-、.w-、.mw-调整高度:.h-、.min-h-、.max-h-

要设置 Bootstrap 框架,需要按照以下步骤:1. 通过 CDN 引用 Bootstrap 文件;2. 下载文件并将其托管在自己的服务器上;3. 在 HTML 中包含 Bootstrap 文件;4. 根据需要编译 Sass/Less;5. 导入定制文件(可选)。设置完成后,即可使用 Bootstrap 的网格系统、组件和样式创建响应式网站和应用程序。

在 Bootstrap 中插入图片有以下几种方法:直接插入图片,使用 HTML 的 img 标签。使用 Bootstrap 图像组件,可以提供响应式图片和更多样式。设置图片大小,使用 img-fluid 类可以使图片自适应。设置边框,使用 img-bordered 类。设置圆角,使用 img-rounded 类。设置阴影,使用 shadow 类。调整图片大小和位置,使用 CSS 样式。使用背景图片,使用 background-image CSS 属性。

如何使用 Bootstrap 按钮?引入 Bootstrap CSS创建按钮元素并添加 Bootstrap 按钮类添加按钮文本
