作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我需要在页面的右上角放置一个表格,并将文字环绕在表格周围。我使用了以下代码。
.floater {
margin: 5px;
float: right;
}
.floater td {
padding: 2px;
border: 1px solid black;
}
<table class="floater">
*--- table---*
</table>
<p>text</p>
这是 jsfiddle:http://jsfiddle.net/es7t7xyo/它与所有编辑器配合良好,但在我的网站上更新时无法正常工作。我正在使用 Wordpress Mantra 主题。
最佳答案
您应该像这样定义表格的宽度:
.floater {
margin: 5px;
float: right;
width: 200px;
}
.floater td {
padding: 2px;
border: 1px solid black;
}
<table class="floater">
<tr><td>11</td><td>12</td><td>13</td></tr>
<tr><td>21</td><td>22</td><td>23</td></tr>
<tr><td>31</td><td>32</td><td>33</td></tr>
</table>
<p>Objectively matrix extensive manufactured products without cost effective ROI. Conveniently seize competitive expertise vis-a-vis standardized action items. Distinctively administrate scalable leadership after world-class process improvements.</p>
<p>Progressively utilize adaptive deliverables before open-source manufactured products. Appropriately transition innovative metrics for optimal methodologies. Assertively customize alternative customer service without client-focused web-readiness.</p>
关于css - 向右浮动不适用于我的 Wordpress Mantra 主题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28762533/
在
我需要在页面的右上角放置一个表格,并将文字环绕在表格周围。我使用了以下代码。 .floater { margin: 5px; float: right; } .floater td { padding
上下文 我正在使用带有 Meteor 1.3 和 Astronomy 的 Mantra 架构管理我的收藏。我试图通过 Meteor 回调函数传递插入对象的 id,以便在我的容器中使用它。 问题当我在方
我是一名优秀的程序员,十分优秀!