我希望我的"出现" -div在我的"框" -div悬停时出现。另一个" box" -divs应该保持原样,除非div下。因此,如果我将4"框中的一个徘徊在顶部,那么其他8个div应该向下移动,因此红色蝴蝶结有空间。
HTML
let branch = BranchUniversalObject(canonicalIdentifier: UUID().uuidString)
branch.title = self.territory.name
branch.metadata = self.territory.dictionary
let properties = BranchLinkProperties()
properties.controlParams = self.territory.dictionary
branch.getShortUrl(with: properties) { string, error in
if let string = string, let url = URL(string: string) {
let controller = UIActivityViewController.controller(activityItem: url, from: sender, traitCollection: self.traitCollection)
alert.dismiss(animated: true)
self.present(controller, animated: true)
}
}
CSS
<?php
$json_feed = "http://localhost/sample/json/blog.json";
$json = file_get_contents($json_feed);
$obj = json_decode($json, true);
$dateCreated = $array['post'].dateCreated;
$date = date('m/d/Y H:i:s', $dateCreated);
foreach($obj['post'] as $article_array){
$url = $article_array['url'];
$title = $article_array['title'];
$category = $article_array['category'];
$large_summary = $article_array['wp_post_content'];
$date = $article_array[$date];
$post = array(
'post_title' => $title,
'post_content' => $large_summary,
'post_status' => 'publish',
'post_type' => 'post',
'comment_status' => 'closed',
'dateCreated' => $date,
'post_template' => 'content.php'
);
wp_insert_post ($post, $wp_error);
}
?>
真希望一些策划者可以帮助我
答案 0 :(得分:1)
好吧,我用javascript(jQuery)制作了一个小提琴。每当您将鼠标悬停在.box
元素上时,它会计算.beholder
和.appear
之间的高度差,并将此差异设置为margin-bottom
到.beholder
。如果高度差小于零,则从函数返回。您可以在var adjust
中调整底部边距,我将其设置为20 ...