盒子边框border的三要素:宽/形状/颜色

建站知识 2021-07-03 08:15www.168986.cn长沙网站建设
盒子border的三要素宽,形状,颜色。

复制代码
代码如下:

<%@ page language="java" import="java.util." pageEncoding="utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>border边框</title>
<style>
#mydiv{
height:200px;
width:100px;
background:black;
border:10px solid yellow;
}
</style>
</head>
<body>
<div id="mydiv">border的三要素:宽 形状 颜色</div>
</body>
</html>
<%@ page language="java" import="java.util." pageEncoding="utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>border边框</title>
<style>
#mydiv{
height:0px;
width:0px;
border-: 50px solid white;
border-right: 50px solid white;
border-left: 50px solid white;
border-bottom: 50px solid blue;
border-
}
</style>
</head>
<body>
<div id="mydiv"></div>
</body>
</html>

Copyright © 2016-2025 www.168986.cn 狼蚁网络 版权所有 Power by