我只能在tr里面加上样式 不能直接加在input上
举个例子 <tr class="textclass"> <td> <input type=text /> </td> </tr>
如何写这个textclass 能控制这个input的宽度
我这样写的 不好用阿
.textclass{
input {width:20px;}
} 大家帮忙
举个例子 <tr class="textclass"> <td> <input type=text /> </td> </tr>
如何写这个textclass 能控制这个input的宽度
我这样写的 不好用阿
.textclass{
input {width:20px;}
} 大家帮忙
解决方案 »
- java远程文件转成输入流之后写给浏览器,达到下载该文件的效果,在window中运行正常,linux中无法下载
- java urlrewrite如何对一级目录进行URL重写?
- Velocity 和 FreeMarker在并发情况下,哪个性能更好?
- 各位大侠,救命啊,TOMCAT启动错误
- 请教各位达人IBM的JAVA问题
- 求一个脚本,怎样才能将所有列表框一次性选上!在线等,马上结帖
- 用DreamWeaver怎么建立jndi数据库连接啊!
- 关于eclipse3.0M9使用Lomboz的问题
- 这样都有错吗??????????
- jsp tag的问题
- jsp页面出NullPointerException
- 公司要做一个考核系统,但是要求考核项集是动态生成的。。
我不能在input里面写, 只能写在input所在的行---tr里面
<input style="width:20px">。
也就是用内联样式了。
<input id="inputwidth">
<input style="width:20px">。
也就是用内联样式了。==============
这样是对的
<HEAD>
<TITLE> New Document </TITLE>
<style type="text/css">
.textclass{
width:20px;
}
</style>
</HEAD> <BODY>
<input class="textclass">
</BODY>
</HTML>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<style>
.textclass td input{width:200px;}
</style>
</HEAD> <BODY>
<table>
<tr class="textclass"> <td> <input type="text" /> </td> </tr>
</table>
</BODY>
</HTML>
<tr>
<td width="15%">受培训企业名称:</td>
<td width="85%"><html-el:text property="entp_name" maxlength="40" style="width:400px" /></td>
</tr>style="width:400px" 这个不就可以直接控制嘛!简单又简洁。呵呵 个人认为~~
这样写就是用内联样式了。
width: 20px;
}