A: p{width:150px; border:2px solid 999999;}
B: #bg{background=url(about.jpg) left no-repeat;}
C: tig td{text-align:center; line-height:22px;}
D: a{text-decoration:none,color:red}
举一反三
- 第一个DIV的样式style为width:150px;height:50px;margin:5px 7px 2px 3px;padding:5px;border:1px solid #000;第二个DIV的样式style为width:150px;height:50px;margin:0;padding:0;border:1px solid #000;请问第一个DIV的实际宽度为________px,原点坐标为x=_____px,y=______px;第二个DIV的原点坐标为x=_____px,y=______px原点为盒子模型可见区域的左上角定点
- 设置DIV宽为500像素和高为400像素的正确方法是? A: height:500 px; width:400 px; B: margin:500px; padding:400 px; C: padding:500 px;margin:400 px; D: width:500 px;height:400 px;
- 21、对下列代码解析正确的是(_____)。 <style type="text/css"> body{ margin:0 } div{float:left; margin-left:10px; width:200px; height:200px; border:1px solid red } </style>
- In css, to center box vertically with the center of the page, please fill in the following code space..box{ position: ________ __ ; left:50%; top:50%; margin-left: ________ ___; margin-top: __________ _ ; width: 300px; height: 200px; border:2px solid #ccc; }
- 下列选项关于jQuery中设置类名为box的元素样式语法正确的是()。 A: $(".box").css("color","red";"border","1px<br/>solid blue"); B: $(".box").css({"color":"red","border":"1px<br/>solid blue"}); C: $(".box").style("color","red";"border","1px<br/>solid blue"); D: $(".box").style.color="red";
内容
- 0
下列哪个样式可以去掉超链接的下划线? A: B: nav ul li { float: left;} C: D: nav ul li a:hover, E: nav ul li a F: current { background: G: 177cb7;} H: a { color: I: 555; text-decoration: none;} J: K: nav ul li a { display: block; width: 135px; height: 56px; line-height: 56px; color: L: fff; text-align: center; font-size: 14px;}
- 1
下面代码使用HTML元素的id属性,将样式应用于网页上的某个段落:<p id="firstp">这是第一个段落</p> 以下关于样式规则定义正确的是( )。 A: <style type="text/css"> p{color:red}</style> B: <style type="text/css"> #firstp {color:red}</style> C: <style type="text/css"> .firstp {color:red}</style> D: <style type="text/css"> p.firstp {color:red}</style>
- 2
在css样式表中,下列设置页面背景图片的说法正确的是( A: background:src(images/news.jpg) bottom repeat-y; B: background:url(images/news.jpg)left bottom no-repeat C: 999999; D: background:url(images/news.jpg)left bottom repeat_y; E: background:link(images/news.jpg)left bottom no-repeat;
- 3
下列哪个CSS样式中设置了左浮动? A: * { margin: 0px; padding: 0px; list-style: none; font-size: 13px;} B: C: header h1 { float: left;} D: a { color: E: 555; text-decoration: none;} F: G: header h1 a { background: url(image/logo.jpg); width: 476px; height: 102px; display: block; text-indent: -9999px;}
- 4
对以下代码片段分析错误的是(___) 〈p style = "border : 1 px solid red font-size : 16 px ; backgroud-color : gray"〉 A: 段落的背景色为gray B: 段落的边框大小为1px C: 段落的字体大小为16px D: 样式应用错误