相同的属性css类但不一样 [英] Same property css class but with is not same

查看:84
本文介绍了相同的属性css类但不一样的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

晚上好,在我的代码中,我在这许多表中使用了很多行和列和表,tr,td具有相同的css但是with和hight是不同的例如

Good evening to all in my code i am using many row and columns and tables in this many tables,tr,td having same css but the with and hight is different for example

.NamelabelSearchbyrestaurantname{color:#fff;font-size:12px;width: 120px;}
.NametxtboxSearchbyrestaurantname{color:#fff;font-size:12px;width: 240px;}





或创建一个css喜欢和表达,在表格,tr。





or create one css like and give the with is in tables,tr.

.NamelabelSearchbyrestaurantname{color:#fff;font-size:12px;}



我怀疑哪一个更好单个css或单独的css任何人给我解决方案

提前感谢

By

Meganathan M


My doubt is which one is better the single css or the separate css anyone give me the solution
thanks in advance
By
Meganathan M

推荐答案

.Searchbyrestaurantname{color:#fff;font-size:12px}
.NameTypelabel {width: 120px}
.NameTypeTextbox {width: 240px}



用法


usage

<table><tbody><tr><td class="Searchbyrestaurantname NameTypelabel">Label here</td></tr></tbody></table>
<table><tbody><tr><td class="Searchbyrestaurantname NameTypeTextbox"><input type="text"></input></td></tr></tbody></table>


这篇关于相同的属性css类但不一样的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆