关于CSS的题目?

wynton 2006-09-08 05:02:21
Create the style sheet for country and button.

requirements

country:
- 10 pixel left padding and 5 pixel top padding
- the following fonts verdana, helvetica, arial, sans-serif, left aligned
- text size 12 pixels
- Heading to be 20 pixels
- with bottom padding of 3 pixels, with a 2 pixel red dotted bottom border


button:
- white button
- very small purple text
- 3 pixel bottom and left space between the buttons
- 2 pixel top and right text padding
- 2 pixel solid grey border
- 2 pixel red left and right border width
...全文
173 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
yorkane 2006-09-08
  • 打赏
  • 举报
回复
上面那个写错一个字母,这个是正确的

<!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=gb2312" />
<title>无标题文档</title>
<style type="text/css" title="">
.country{
font:normal 100%/150% verdana, "helvetica", arial, sans-serif;
text-align:left;
padding:5px 0px 3px 10px;
text-indent:20px;
border-bottom:2px dotted red;
}
button{
font:normal 9px/15px verdana, "helvetica", arial, sans-serif;
color:purple;
background:white;
margin-left:3px;
padding:2px 2px 0px 0px;
border-top:2px solid gray;
border-left:2px solid red;
border-right:2px solid red;
}
</style>
</head>
<body>
<div class="country">
china

</div>
<br />
<button>button1</button><button>button2</button><button>button3</button><button>button4</button><br />
<button>button5</button><button>button6</button>
</body>
</html>
yorkane 2006-09-08
  • 打赏
  • 举报
回复
测试通过.
<html>
<head>
<title>无标题文档</title>
<style type="text/css" title="">
.country{
font:normal 100%/150% verdana, "helvetica", arial, sans-serif;
text-align:left;
padding:5px 0px 3px 10px;
text-indent:20px;
border-bottom:2px dotted red;
}
button{
font:normal 9px/15px verdana, "helvetica", arial, sans-serif;
color:purple;
background:white;
margin-left:3px;
padding:2px 2px 0px 0px;
border:2px solid grey;
border-left:2px solid red;
border-right:2px solid red;
}
</style>
</head>
<body>
<div class="country">
china

</div>
<button>button1</button><button>button2</button><button>button3</button><button>button4</button><br />
<button>button5</button><button>button6</button>
</body>
</html>

飘零雾雨 2006-09-08
  • 打赏
  • 举报
回复
<input type="button" name="test" value="测试" style="background:#ffffff;">
dlflying 2006-09-08
  • 打赏
  • 举报
回复
input.white {background-color: #FFFFFF;}
wynton 2006-09-08
  • 打赏
  • 举报
回复
其它的好办,关键是button 的颜色要白的,怎么设置啊?

61,112

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧