麻煩大家看看為什么我的邊框顯示不了呢?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>盒子模型練習題</title>
<style type="text/css">
.myBox {
? ? ? ?width:200px;
? ? ? ?height:100px;
? ? ? ?border:1px black;
? ? ? ?margin-top:15px;
? ? ? ?padding-left:15px;
? ? ? ?}
</style >
<!--在此定義一個類選擇器myBox,根據(jù)要求設(shè)置相關(guān)CSS屬性-->
</head>
<body>
<div class="myBox">
Hello World!
</div>
<!--在此添加一個div標簽,并設(shè)置其class屬性為myBox-->
</body>
</html>
2019-03-31
border:1px solid black;
solid? 是實線
2019-03-29
border:1px solid black;
solid是邊框的樣式,不設(shè)置的話是看不到的