我重定义了input的样式,让button等所有的都显示一个边框,但问题来了,在使用input中的radio时,也出现了边框,怎么去重定义radio的样式?

liukaiii 2003-05-16 05:52:14
我重定义了input的样式,让button等所有的都显示一个边框,但问题来了,在使用input中的radio时,也出现了边框,怎么去重定义radio的样式?我不想改变input的样式,因为好多页面使用了它.而且不想通过在每个radio加入border:none之类的办法来实现.因为有好多页面是直接用的这个样式文件,里面有太多的radio不可能手工每个都改.
...全文
195 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
fdyxjh 2003-06-08
  • 打赏
  • 举报
回复
fason【阿信】,请到
http://expert.csdn.net/Expert/topic/1863/1863030.xml?temp=.6550867
http://expert.csdn.net/Expert/topic/1863/1863030.xml?temp=.8319513
拿分!
fason 2003-05-16
  • 打赏
  • 举报
回复
看效果是不是
<head>
<style>
input { border:expression(type=="radio"?'none ;':'#999999 solid 1px')}
</style>
</head>
<body>
<input>
<input type=radio>
</body>
liukaiii 2003-05-16
  • 打赏
  • 举报
回复
这句该怎么改呢?
input { border:#999999 ; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px}
我改成
input { border:expression(type=="radio"?'none ;':'#999999 ;') border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px}
所有边框都没了
liukaiii 2003-05-16
  • 打赏
  • 举报
回复
Thanks
fason 2003-05-16
  • 打赏
  • 举报
回复
<head>
<style>
input{border:expression(type=="button"?'1 solid red':'')}
</style>
</head>

<input type="radio">
<input type="button">

61,128

社区成员

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

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