表格固定单元格td等宽(CSS):
table {table-layout:fixed;
}
消除控件边框(CSS):
input{width:100px;
border-style:none;}
表单标签:<form></form> ,其属性有action(响应地址),method(发送数据方式:post/get)
常用表单元素:
CSS
是
C
ascading
S
tyle
S
heets
的缩写,即:层叠
样式
表单
CSS
是
HTML
语言的
一种扩展,其主要作用为
:
定义
Web
页面
布局
以及页面中元素
的
显示
方式
利用
CSS
样式实现
HTML
内容
(
结构
)
与表现
(
格式
)
的分离
css的三种引入方式:内嵌式,内部式,外部式。
内嵌式即在标签属性位置直接写入。
内部式在head标签中以<style></style>引入。
外部式在head标签中以链接引入外部样式表。
<link
rel
="stylesheet" type="text/
css
"
href="
style.css
"
>
CSS选择器:常用的有id选择器,标签选择器,类选择器。示例依次分别为:
#df {background-color:#0f7cbf;
font-size:18px;
height:35px;
font-weight:bold;
text-indent:1em
}
font-size:18px;
height:35px;
font-weight:bold;
text-indent:1em
}
<a id="df"></a>
div {background-color:#0f7cbf;
font-size:18px;
height:35px;
font-weight:bold;
text-indent:1em
}
font-size:18px;
height:35px;
font-weight:bold;
text-indent:1em
}
<div></div>
.j1 {background-color:#0f7cbf;
font-size:18px;
height:35px;
font-weight:bold;
text-indent:1em
}
font-size:18px;
height:35px;
font-weight:bold;
text-indent:1em
}
<a class="j1"></a>
较不常用的有通配符选择器,包含选择器。选择器可以用“,”分隔表示同一组选择器(样式一样,选择器不同)