.myinput{
font-size:9pt
color:#000066
height:18pt
widht:80pt
border-bottom:1px solid #003300
border-top-color:yellow
background:#000080
}
(把黄色转换为16进制把,我记不住)
第二个问题:
a:hover{
font-size:10pt
color:#000080
text-decoration:none
}
第三个问题:
body{
font-size:10pt
color:#000080
background:url(image/bj.jpg) transparent center repeat fixed
}
第四个问题:
.mybutton{
font-size:10pt
color:#000080
letter-spacing:5pt
background:#808080
border:1px solid #000080
}
应该就这样子把
也许有笔下误
1.<!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/htmlcharset=utf-8" />
<title>无标题文档</title>
<link href="style/index.css" rel="stylesheet" type="text/css" />
</head>
<body>
</body>
</html>
css文件里写入
@charset "utf-8"
body {
background:red
}
2.
<!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/htmlcharset=utf-8" />
<title>无标题文档</title>
<link href="style/index.css" rel="stylesheet" type="text/css" />
<style type="text/css">
p{
height:100px
width:100px
background:#00F
}
</style>
</head>
<body>
<div style="margin-bottom:10pxheight:100pxwidth:100pxbackground:green"></div>
<p></p>
</body>
</html>
css文件里写入
@charset "utf-8"
body {
background:red
}
3.
第三个问题是要你自己动手了
你直接就把上面的属性高宽值改变然后刷新下就成了
4.
在css文件中写入下面的代码
a{
text-decoration:none
}
要文字显示在图片上方(含文字在上层的情况,即不被图片遮挡),则文字需要脱离文档流,那么首先排除在图片上做文章的 A、B 两项。
再来看 C、D 两项,这两句都能使文字层脱离文档流,但 C 项的代码仅让文字层显示在了图片的“上层”,而 D 项不但让文字层显示在了“上层”,而且位于图片“上方”。
这道题其实不严谨,如果 #father 这层没有加相对或绝对定位的话,D 选项中的代码能让文字层跑出父容器,但不管跑哪里去,终归是显示在图片上方的,故 D 正确。