
给text标签设置了css样式,为什么在firefox中无法显示?
.text_1{width:250px;height:25px;border-color:#CCCCCC;border-style:solid;border:1px;}就...
.text_1{
width:250px; height:25px;
border-color:#CCCCCC;
border-style:solid;
border:1px;
}
就是这段css,在ie中能正确显示,可是在firefox中却看不见边框。为什么? 展开
width:250px; height:25px;
border-color:#CCCCCC;
border-style:solid;
border:1px;
}
就是这段css,在ie中能正确显示,可是在firefox中却看不见边框。为什么? 展开
1个回答
展开全部
你要写成这样。
.text_1{
width:250px; height:25px;
border: solid 1px #CCCCCC;
}
写边距和内填充时也要写成
padding:上 右 下 左
margin:上 右 下 左
.text_1{
width:250px; height:25px;
border: solid 1px #CCCCCC;
}
写边距和内填充时也要写成
padding:上 右 下 左
margin:上 右 下 左
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询