style怎么不加type?
第6行的<style>怎么不加type,印象好像是<style type="text/css">这样的。求解
第6行的<style>怎么不加type,印象好像是<style type="text/css">这样的。求解
2016-07-08
因为style就是CSS的样式了。。而type也是样式
就像这个
type是html的样式,,可以不用CSS来表示也能用
<input type="radio" value="1" name="gender" checked="cheaked" />
<input type="radio" value="2" name="gender" />
<input type="text" name="myname" value="">
<input type="password" name="myname" value="">
而style是CSS的样式,必须要用到style
<style>
div{
height:20px;
width:20px;
border:solid 5px blue;
{
</style>
举报