使用HTML CSS制作简易三角形和旗帜
程序员文章站
2022-03-18 16:30:14
HTML:
html:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>旗帜</title>
<link rel="stylesheet" href="work1.css">
</head>
<body>
<div class="qwe"></div>
<div class="www"></div>
<div class="t0"></div>
</body>
</html>
css:
.www{
height: 1000px;
width: 15px;
background-color: black;
display: inline-block;
margin: -5px;
padding: 0;
}
.t0{
margin:30px;
height:0px;
width:0px;
border-top:solid 300px red;
border-left:solid 300px rgba(0, 0, 0, 0);
border-right: solid 300px rgba(0, 0, 0, 0);
display: inline-block;
}
.qwe{
height: 205px;
width: 300px;
background-color: red;
vertical-align: top;
display: inline-block;
margin-top: -5px;
padding: 0;
}
推荐阅读
-
C# 封装miniblink 使用HTML/CSS/JS来构建.Net 应用程序界面和简易浏览器
-
使用HTML5和CSS3制作一个模态框的示例
-
使用Css和Div ”画“个三角形_html/css_WEB-ITnose
-
使用Css和Div ”画“个三角形_html/css_WEB-ITnose
-
使用HTML5和CSS3实现生日蛋糕的制作
-
使用transform和transition制作CSS3动画_html/css_WEB-ITnose
-
学习网页制作中如何在正确选取和使用 CSS 单位_html/css_WEB-ITnose
-
学习网页制作中如何在正确选取和使用 CSS 单位_html/css_WEB-ITnose
-
使用CSS3制作三角形小图标_html/css_WEB-ITnose
-
使用纯css制作简易步骤流程_html/css_WEB-ITnose