朋友,我的问题是我的页面加载速度很慢,因为所有的负载都是狡猾的.我正在拉RSS源,如果你点击"文章"按钮,它会弹出一个包含它的内部模态.问题是所有的s都是simeltaneously.
这是网站:http: //daisy.camorada.com/
我已经尝试插入一个src,但这不起作用,因为我猜iframe页面打开时加载.
<button class='btn btn-primary' id='miguel'>TEST ME NOW</button>
<button class='btn btn-primary' id='jamison'>jamison</button>
<div id="yoyoyo">
</div>
<iframe id="gogo">
</iframe>
<script>
$('#miguel').on('click', function() {
alert('clicked');
$('#gogogo').attr('href', 'http://www.google.com');
});
</script>
<script>
$('#jamison').on('click', function() {
alert('clicked JAMISON');
$("#yoyoyo").html("<h1>HELLO J</h1><br><iframe class='full-iframe' href='http://news.yahoo.com/three-killed-tribal-clash-libya-001717827.html'></iframe>");
});
</script>
Run Code Online (Sandbox Code Playgroud) 可能重复:
php字符串转义为python的""""""?
python中的三引号包含其中包含的所有引号和换行符.例如,
""" this
is all
just one string. I can even tell you "I like pi".
Notice that the single quotes are escaped - they don't end the string; and the newlines become part of the string
"""
Run Code Online (Sandbox Code Playgroud)
有人知道PHP是否具有与python相同的功能
""" <form><h1>PUT HTML HERE</h1> </form> """
enter code here
Run Code Online (Sandbox Code Playgroud)
编辑:对于那些将来看这个问题的人,我已经回答了,这是一个例子:
$heading = "Heading Gettizburgz";
print <<< END
<p><h1>$heading</h1> "in quotes" 'in single'
Four score and seven years ago<br/>
our fathers set onto this continent<br/>
(and so on ...)<br/>
</p> …
我想在下面的页面上找到每个:
http://snowbird.camorada.com/test.php
查看如下的砖石格式:
http://masonry.desandro.com/demos/basic-single-column.html
这是我希望以砖石格式出现的div:
<div class="tiled">
<div class="newz_caption" style="background: #FFFFFF;">
//content
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
这是我用来选择的代码,(抱歉评论)
<script>
$(function(){
$('#container').masonry({
// options
itemSelector : '.tiled',
isAnimated: !Modernizr.csstransitions
});
});
</script>
Run Code Online (Sandbox Code Playgroud)