html - 最大化单元格宽度的 CSS 表格属性

标签 html css html-table

<分区>

我的 CSS 中有这个:

ES{
max-width:20px;
word-wrap:break-word;

}

我的 table 看起来像这样......

<table border="1" cellpadding="2" class="ES" >
<tr>
    <td><input name="rbeso" type="radio" id="rblimpet" value="limpet" title="Seafood" /><b>The Doctor Limpet</b> Fresh from the sea! Crab flakes, alfredo sauce and mozzarella cheese.</td>


</tr>

我希望单元格具有最大宽度,但这似乎没有什么区别...

最佳答案

错别字:

.ES {
^--missing

没有. ,您正在为一些不存在的 <es> 定义一个 css 规则标记,而不是 CSS 类。

关于html - 最大化单元格宽度的 CSS 表格属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10056727/

上一篇:php - 获取 google chrome 以查看 rss 提要

下一篇:php - 单击触发单选按钮没有响应

相关文章:

javascript - 根据 Name 属性的值更改背景颜色

html - 如何将 HTML 代码添加到网页中?

html - 如何在 Wordpress 中注册 Bootstrap 菜单?

css - 如何在不使用单独的 CSSClass 的情况下设置 asp 控件的样式?

css - 如何使用 Angular/Material2 运行混合应用程序 AngularJS/Material1

HTML 表格到 YAML 的转换

html - 为什么有的表格会随机继承这个css样式?

javascript - 放入内部时更改可放置图像

javascript - 灯箱 'next' 功能仍然显示已通过显示 :none; 隐藏的元素 (li)

html - 如何修复带有圆 Angular 的 HTML 表格上的间隙?