是哪里錯了?為什么顯示不出邊框
<!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>
<!--在此定義一個類選擇器myBox,根據要求設置相關CSS屬性--
<style>
?.myBox{
? ? width:200px;
? ? height:100px;
? ? border:1px? solid red;
? ? margin-top:10px;
? ? padding-left:15px;
? ? }
</style>
</head>
<body>
<!--在此添加一個div標簽,并設置其class屬性為myBox-->
<div class="myBox"> hello world </div>
</body>
</html>
2018-11-20
title下面一行注釋內容,你應該是不小心把右邊的尖括號刪掉了,補充上就好了。
2018-09-08
這一行? ? <!--在此定義一個類選擇器myBox,根據要求設置相關CSS屬性--
你把老師的結束尖括號 >? 給刪掉了,加上就好了??
2018-09-01
是<style type="text/css">,不好意思
2018-09-01
<style type="test/css">
這樣寫