我想添加一个自定义div。这是我的代码(content-text-para)是一个重复这么多次的div标签。我想要的是在添加一个div之后计算div(content-text-para)5次(例如:<div class="my_class"> </div>
)。这是动态添加是可能的。我不想手动添加我想要动态添加
<html>
<head>
<meta charset=utf-8 />
<title>Header & Footer</title>
</head>
<body>
<div class="content-text-para"> Lijo Mpage exports don't support adding </div>
<div class="content-text-para"> Lijo Mpage exports don't support adding </div>
<div class="content-text-para"> Lijo Mpage exports don't support adding </div>
<div class="content-text-para"> Lijo Mpage exports don't support adding </div>
<div class="content-text-para"> Lijo Mpage exports don't support adding </div>
<!-- here am count 5 dives here u need to add new dive example <div class="new_gap_div"> HI </div> -->
<div class="content-text-para"> Lijo Mpage exports don't support adding </div>
<div class="content-text-para"> Lijo Mpage exports don't support adding </div>
<div class="content-text-para"> Lijo Mpage exports don't support adding </div>
<div class="content-text-para"> Lijo Mpage exports don't support adding </div>
<div class="content-text-para"> Lijo Mpage exports don't support adding </div>
<!-- here am count 5 dives here u need to add new dive example <div class="new_gap_div"> HI </div> -->
<div class="content-text-para"> Lijo Mpage exports don't support adding </div>
<div class="content-text-para"> Lijo Mpage exports don't support adding </div>
<div class="content-text-para"> Lijo Mpage exports don't support adding </div>
<div class="content-text-para"> Lijo Mpage exports don't support adding </div>
<div class="content-text-para"> Lijo Mpage exports don't support adding </div>
<!-- here am count 5 dives here u need to add new dive example <div class="new_gap_div"> HI </div> -->
<div class="content-text-para"> Lijo Mpage exports don't support adding </div>
<div class="content-text-para"> Lijo Mpage exports don't support adding </div>
</body>
</html>
&#13;
答案 0 :(得分:0)
这是添加元素的方法。这来自here
for (int i = 0; i < SIZE; ++i)
if (ray[i] != (int a{ray[i] & (1u << 5)})) //THIS DOES NOT COMPILE
return a;
答案 1 :(得分:0)
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
&#13;
lastdateandtime
&#13;
试试这个。