<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
ul { font-size: 0; }
ul li { font-size: 10px; display: inline-block; } // фикс для ie 6 и 7 надо zoom: 1; display: inline;
$('#loading-example-btn').prop('disabled', true);
var $this = $(this)
, href
, target_id = $this.attr('data-id')
, target = $this.attr('data-target') || e.preventDefault() || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')
, option = $(target).data('collapse') ? 'toggle' : $this.data() ;
$this[$(target).hasClass('in') ? 'addClass' : 'removeClass']('collapsed')
$(target).collapse(option);
.detached { width: 100% !important; left: 0 !important; right: 0; }
<div id="main">
<div><div></div></div>
<div></div>
<div></div>
<div></div>
</div>
<script>
$('#main>div').each(function(i){
$(this).attr('id', 'block-'+(i+1));
})
</script>
<a href="?count=/images/123.jpg">Скачать изображение</a>
if( $_GET['count'] && file_exists( $_SERVER['DOCUMENT_ROOT'] ) )
{
//counter ++
file_force_download( $_GET['count'] );
}
function file_force_download($file)
{
if (ob_get_level()) {
ob_end_clean();
}
header('Content-Description: File Transfer');
if (isset($_SERVER['HTTP_USER_AGENT']) and strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE'))
{
header('Content-Type: application/force-download');
}
else {
header('Content-Type: application/octet-stream');
}
header('Content-Disposition: attachment; filename=' . basename($file));
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate');
header('Pragma: public');
header('Content-Length: ' . filesize($_SERVER['DOCUMENT_ROOT'] . $file));
readfile($_SERVER['DOCUMENT_ROOT'] . $file);
exit;
}