作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
如何在我的网页上使用 div 或其他东西为 google adsense 广告创建垂直空间,我想在表格的左侧和右侧添加垂直 adsense 广告,请参见下图: https://ibb.co/LNg52NJ
您可以在此处查看实时版本或检查代码: https://translatesubtitles.com/browse_subtitle.php
这是表格代码:
<div class="row">
<table id="example" data-order='[[ 0, "desc" ]]' class="table table-striped " style="width:100%">
<thead>
<tr>
<th style="display: none">ID</th>
<th>Name</th>
<th>Language</th>
<th>Author</th>
</tr>
</thead>
<tbody>
<?php
include("sad.php");
$query = "SELECT * FROM me order by id DESC";
$result = mysqli_query($conn, $query);
if(mysqli_num_rows($result) > 0){
while($row = mysqli_fetch_array($result)){
?>
<tr>
<td style="display: none"><?php echo $row['id']; ?></td>
<td><a href="ed.php?id=<?php echo $row['id']; ?>"><?php echo $row['name']; ?></a></td>
<td><?php echo $row['language']; ?></td>
<td><?php echo $row['author']; ?></td>
</tr>
<?php }} ?>
</tbody>
</table>
</div>
最佳答案
您可以使用引导列系统并添加如下代码:
<div class="container">
<div class="row">
<div class="col-sm-3"><!-- ad sense --></div>
<div class="col-sm-6"><!-- your table content --></div>
<div class="col-sm-3"><!-- ad sense --></div>
</div>
</div>
关于html - 如何将 Vertical adsense 广告空间插入我的网页?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58633535/
我是一名优秀的程序员,十分优秀!