div css制作百度视频-电影分类中当鼠标移入移出时对各个电影详细内容的显示,对其进行定位,判断内容是显示在左边还是右边,且显示图片与原图片贴合成一个div容器提示框代码
使用方法:
1、head引入css文件
<link rel="stylesheet" type="text/css" href="statics/css/style.css"/>
2、body引入HTML代码
<div class="main">
<div class="dy-content">
<div class="dy-videos">
<ul class="dy-video-list">
<li data- class="dy-video-item dy-video-meta-right">
<div class="dy-video-meta">
<div class="dy-video-meta-bg">
</div>
<div class="dy-video-meta-dy">
<h4 class="dy-video-title">
<a>
西虹市首富
</a>
</h4>
<span class="dy-video-rating">7.3</span>
<ul class="dy-video-meta-list">
<li class="dy-video-actors">
<span class="dy-video-tip">
主演:
</span>
<a>沈腾</a>
<a>宋芸桦</a>
</li>
<li class="dy-video-types">
<span class="dy-video-tip">类型:</span>
<span class="dy-video-meta-filter">喜剧</span>
</li>
<li class="dy-video-areas">
<span class="dy-split">|</span>
<span class="dy-video-tip">地区:</span>
<span class="dy-video-meta-filter">内地</span>
</li>
<li class="dy-video-starts">
<span class="dy-split">|</span>
<span class="dy-video-tip">年代:</span>
<span class="dy-video-meta-filter">2018</span>
</li>
</ul>
<p class="dy-video-intro">
《西虹市首富》的故事发生在《夏洛特烦恼》中的“特烦恼”之城“西虹市”。混迹于丙级业余足球队的守门员王多鱼(沈腾饰演...
<a class="dy-video-intro-more">更多</a>
</p>
</div>
<div class="dy-video-meta-bg">
</div>
</div>
<div class="dy-video-poster">
<a class="dy-video-link">
<img class="dy-video-img" src="statics/images/1.jpg" alt="西虹市首富">
<span class="dy-video-nocomplete"></span>
<span class="dy-video-date">
2018 年
</span>
<span class="dy-video-bg"></span>
<span class="s-pay"></span>
</a>
</div>
<div class="dy-video-primary">
<h4 class="dy-video-title"><a>
西虹市首富
</a>
</h4>
<span class="dy-video-rating">
7.3
</span>
</div>
</li>
<li data- class="dy-video-item dy-video-meta-right">
<div class="dy-video-meta">
<div class="dy-video-meta-bg">
</div>
<div class="dy-video-meta-dy">
<h4 class="dy-video-title">
<a>
一出好戏
</a>
</h4>
<span class="dy-video-rating">8.0</span>
<ul class="dy-video-meta-list">
<li class="dy-video-actors">
<span class="dy-video-tip">
主演:
</span>
<a>黄渤</a>
<a>舒淇</a>
</li>
<li class="dy-video-types">
<span class="dy-video-tip">类型:</span>
<span class="dy-video-meta-filter">喜剧</span>
</li>
<li class="dy-video-areas">
<span class="dy-split">|</span>
<span class="dy-video-tip">地区:</span>
<span class="dy-video-meta-filter">内地</span>
</li>
<li class="dy-video-starts">
<span class="dy-split">|</span>
<span class="dy-video-tip">年代:</span>
<span class="dy-video-meta-filter">2018</span>
</li>
</ul>
<p class="dy-video-intro">
马进欠下债务,与远房表弟小兴在底层社会摸爬滚打,习惯性的买福利票,企图一夜爆富,并迎娶自己的同事姗姗。一日,公司全体...
<a class="dy-video-intro-more">更多</a>
</p>
</div>
<div class="dy-video-meta-bg">
</div>
</div>
<div class="dy-video-poster">
<a class="dy-video-link">
<img class="dy-video-img" src="statics/images/2.jpg" alt="一出好戏">
<span class="dy-video-nocomplete"></span>
<span class="dy-video-date">
2018 年
</span>
<span class="dy-video-bg"></span>
<span class="s-pay"></span>
</a>
</div>
<div class="dy-video-primary">
<h4 class="dy-video-title"><a>
一出好戏
</a>
</h4>
<span class="dy-video-rating">
8.0
</span>
</div>
</li>
<li data- class="dy-video-item dy-video-meta-right">
<div class="dy-video-meta">
<div class="dy-video-meta-bg">
</div>
<div class="dy-video-meta-dy">
<h4 class="dy-video-title">
<a>
捉妖记2
</a>
</h4>
<span class="dy-video-rating">6.6</span>
<ul class="dy-video-meta-list">
<li class="dy-video-actors">
<span class="dy-video-tip">
主演:
</span>
<a>白百何</a>
<a>井柏然</a>
</li>
<li class="dy-video-types">
<span class="dy-video-tip">类型:</span>
<span class="dy-video-meta-filter">喜剧</span>
<span class="dy-video-meta-filter">奇幻</span>
</li>
<li class="dy-video-areas">
<span class="dy-split">|</span>
<span class="dy-video-tip">地区:</span>
<span class="dy-video-meta-filter">内地</span>
</li>
<li class="dy-video-starts">
<span class="dy-split">|</span>
<span class="dy-video-tip">年代:</span>
<span class="dy-video-meta-filter">2018</span>
</li>
</ul>
<p class="dy-video-intro">
上一集与胡巴分别后,天荫带着小岚踏上寻父之路,在义薄云天的天师堂堂主云大哥的帮助下,二人得知天荫父亲宋戴天的护妖轨...
<a class="dy-video-intro-more">更多</a>
</p>
</div>
<div class="dy-video-meta-bg">
</div>
</div>
<div class="dy-video-poster">
<a class="dy-video-link">
<img class="dy-video-img" src="statics/images/3.jpg" alt="捉妖记2">
<span class="dy-video-complete"></span>
<span class="dy-video-date">
2018 年
</span>
<span class="dy-video-bg"></span>
</a>
</div>
<div class="dy-video-primary">
<h4 class="dy-video-title"><a>
捉妖记2
</a>
</h4>
<span class="dy-video-rating">
6.6
</span>
</div>
</li>
<li data- class="dy-video-item dy-video-meta-right">
<div class="dy-video-meta">
<div class="dy-video-meta-bg">
</div>
<div class="dy-video-meta-dy">
<h4 class="dy-video-title">
<a>
死侍
</a>
</h4>
<span class="dy-video-rating">8.0</span>
<ul class="dy-video-meta-list">
<li class="dy-video-actors">
<span class="dy-video-tip">
主演:
</span>
<a>瑞恩·雷诺兹</a>
</li>
<li class="dy-video-types">
<span class="dy-video-tip">类型:</span>
<span class="dy-video-meta-filter">喜剧</span>
<span class="dy-video-meta-filter">科幻</span>
</li>
<li class="dy-video-areas">
<span class="dy-split">|</span>
<span class="dy-video-tip">地区:</span>
<span class="dy-video-meta-filter">美国</span>
</li>
<li class="dy-video-starts">
<span class="dy-split">|</span>
<span class="dy-video-tip">年代:</span>
<span class="dy-video-meta-filter">2016</span>
</li>
</ul>
<p class="dy-video-intro">
《金刚狼》的成功首映票房不仅让福克斯为《金刚狼2》开绿灯,更让福克斯有了打造更多角色外传的想法。据《综艺》报道,福...
<a class="dy-video-intro-more">更多</a>
</p>
</div>
<div class="dy-video-meta-bg">
</div>
</div>
<div class="dy-video-poster">
<a class="dy-video-link">
<img class="dy-video-img" src="statics/images/4.jpg" alt="死侍">
<span class="dy-video-complete"></span>
<span class="dy-video-date">
2016 年
</span>
<span class="dy-video-bg"></span>
</a>
</div>
<div class="dy-video-primary">
<h4 class="dy-video-title"><a>
死侍
</a>
</h4>
<div class="dy-video-intro">
死侍是一个亦正亦邪的角色。
</div>
<span class="dy-video-rating">
8.0
</span>
</div>
</li>
<li data- class="dy-video-item dy-video-meta-left">
<div class="dy-video-meta">
<div class="dy-video-meta-bg">
</div>
<div class="dy-video-meta-dy">
<h4 class="dy-video-title">
<a>
爱情公寓
</a>
</h4>
<span class="dy-video-rating">5.2</span>
<ul class="dy-video-meta-list">
<li class="dy-video-actors">
<span class="dy-video-tip">
主演:
</span>
<a>陈赫</a>
<a>娄艺潇</a>
</li>
<li class="dy-video-types">
<span class="dy-video-tip">类型:</span>
<span class="dy-video-meta-filter">喜剧</span>
<span class="dy-video-meta-filter">爱情</span>
</li>
<li class="dy-video-areas">
<span class="dy-split">|</span>
<span class="dy-video-tip">地区:</span>
<span class="dy-video-meta-filter">内地</span>
</li>
<li class="dy-video-starts">
<span class="dy-split">|</span>
<span class="dy-video-tip">年代:</span>
<span class="dy-video-meta-filter">2018</span>
</li>
</ul>
<p class="dy-video-intro">
《爱情公寓》电影版归来,原班人马十年催泪重聚。曾小贤、胡一菲、吕子乔、张伟、唐悠悠、陈美嘉悉数回归,还是熟悉的场景...
<a class="dy-video-intro-more">更多</a>
</p>
</div>
<div class="dy-video-meta-bg">
</div>
</div>
<div class="dy-video-poster">
<a class="dy-video-link">
<img class="dy-video-img" src="statics/images/5.jpg" alt="爱情公寓">
<span class="dy-video-nocomplete"></span>
<span class="dy-video-date">
2018 年
</span>
<span class="dy-video-bg"></span>
<span class="s-pay"></span>
</a>
</div>
<div class="dy-video-primary">
<h4 class="dy-video-title"><a>
爱情公寓
</a>
</h4>
<span class="dy-video-rating">
5.2
</span>
</div>
</li>
<li data- class="dy-video-item dy-video-item-last dy-video-meta-left">
<div class="dy-video-meta">
<div class="dy-video-meta-bg">
</div>
<div class="dy-video-meta-dy">
<h4 class="dy-video-title">
<a>
羞羞的铁拳
</a>
</h4>
<span class="dy-video-rating">7.3</span>
<ul class="dy-video-meta-list">
<li class="dy-video-actors">
<span class="dy-video-tip">
主演:
</span>
<a>艾伦</a>
<a>马丽</a>
</li>
<li class="dy-video-types">
<span class="dy-video-tip">类型:</span>
<span class="dy-video-meta-filter">喜剧</span>
<span class="dy-video-meta-filter">奇幻</span>
</li>
<li class="dy-video-areas">
<span class="dy-split">|</span>
<span class="dy-video-tip">地区:</span>
<span class="dy-video-meta-filter">内地</span>
</li>
<li class="dy-video-starts">
<span class="dy-split">|</span>
<span class="dy-video-tip">年代:</span>
<span class="dy-video-meta-filter">2017</span>
</li>
</ul>
<p class="dy-video-intro">
靠打假拳混日子的艾迪生(艾伦饰),本来和正义感十足的体育记者马小(马丽饰)是一对冤家,没想到因为一场意外的电击,男...
<a class="dy-video-intro-more">更多</a>
</p>
</div>
<div class="dy-video-meta-bg">
</div>
</div>
<div class="dy-video-poster">
<a class="dy-video-link">
<img class="dy-video-img" src="statics/images/6.jpg" alt="羞羞的铁拳">
<span class="dy-video-complete"></span>
<span class="dy-video-date">
2017 年
</span>
<span class="dy-video-bg"></span>
</a>
</div>
<div class="dy-video-primary">
<h4 class="dy-video-title"><a>
羞羞的铁拳
</a>
</h4>
<span class="dy-video-rating">
7.3
</span>
</div>
</li>
<li data- class="dy-video-item dy-video-meta-right">
<div class="dy-video-meta">
<div class="dy-video-meta-bg">
</div>
<div class="dy-video-meta-dy">
<h4 class="dy-video-title">
<a>
熊出没(变形记)
</a>
</h4>
<span class="dy-video-rating">7.3</span>
<ul class="dy-video-meta-list">
<li class="dy-video-actors">
<span class="dy-video-tip">
主演:
</span>
<a>张伟</a>
<a>张秉君</a>
</li>
<li class="dy-video-types">
<span class="dy-video-tip">类型:</span>
<span class="dy-video-meta-filter">冒险</span>
<span class="dy-video-meta-filter">动画</span>
</li>
<li class="dy-video-areas">
<span class="dy-split">|</span>
<span class="dy-video-tip">地区:</span>
<span class="dy-video-meta-filter">内地</span>
</li>
<li class="dy-video-starts">
<span class="dy-split">|</span>
<span class="dy-video-tip">年代:</span>
<span class="dy-video-meta-filter">2018</span>
</li>
</ul>
<p class="dy-video-intro">
光头强爸爸突然到访狗熊岭,向来严厉古板的强爸却对光头强嘘寒问暖,而朝夕相处却未能缓和关系,反而导致了父子矛盾的爆发...
<a class="dy-video-intro-more">更多</a>
</p>
</div>
<div class="dy-video-meta-bg">
</div>
</div>
<div class="dy-video-poster">
<a class="dy-video-link">
<img class="dy-video-img" src="statics/images/7.jpg" alt="熊出没(变形记)">
<span class="dy-video-complete"></span>
<span class="dy-video-date">
2018 年
</span>
<span class="dy-video-bg"></span>
</a>
</div>
<div class="dy-video-primary">
<h4 class="dy-video-title"><a>
熊出没(变形记)
</a>
</h4>
<span class="dy-video-rating">
7.3
</span>
</div>
</li>
<li data- class="dy-video-item dy-video-meta-right">
<div class="dy-video-meta">
<div class="dy-video-meta-bg">
</div>
<div class="dy-video-meta-dy">
<h4 class="dy-video-title">
<a>
乘风破浪
</a>
</h4>
<span class="dy-video-rating">7.3</span>
<ul class="dy-video-meta-list">
<li class="dy-video-actors">
<span class="dy-video-tip">
主演:
</span>
<a>邓超</a>
<a>彭于晏</a>
</li>
<li class="dy-video-types">
<span class="dy-video-tip">类型:</span>
<span class="dy-video-meta-filter">喜剧</span>
<span class="dy-video-meta-filter">冒险</span>
</li>
<li class="dy-video-areas">
<span class="dy-split">|</span>
<span class="dy-video-tip">地区:</span>
<span class="dy-video-meta-filter">内地</span>
</li>
<li class="dy-video-starts">
<span class="dy-split">|</span>
<span class="dy-video-tip">年代:</span>
<span class="dy-video-meta-filter">2017</span>
</li>
</ul>
<p class="dy-video-intro">
赛车手阿浪一直对父亲反对自己的赛车事业耿耿于怀,在向父亲证明自己的过程中,阿浪却意外的卷入了一场奇妙的冒险。他在这...
<a class="dy-video-intro-more">更多</a>
</p>
</div>
<div class="dy-video-meta-bg">
</div>
</div>
<div class="dy-video-poster">
<a class="dy-video-link">
<img class="dy-video-img" src="statics/images/8.jpg" alt="乘风破浪">
<span class="dy-video-complete"></span>
<span class="dy-video-date">
2017 年
</span>
<span class="dy-video-bg"></span>
</a>
</div>
<div class="dy-video-primary">
<h4 class="dy-video-title"><a>
乘风破浪
</a>
</h4>
<span class="dy-video-rating">
7.3
</span>
</div>
</li>
<li data- class="dy-video-item dy-video-meta-right">
<div class="dy-video-meta">
<div class="dy-video-meta-bg">
</div>
<div class="dy-video-meta-dy">
<h4 class="dy-video-title">
<a>
卧底巨星
</a>
</h4>
<span class="dy-video-rating">5.2</span>
<ul class="dy-video-meta-list">
<li class="dy-video-actors">
<span class="dy-video-tip">
主演:
</span>
<a>陈奕迅</a>
<a>李荣浩</a>
</li>
<li class="dy-video-types">
<span class="dy-video-tip">类型:</span>
<span class="dy-video-meta-filter">喜剧</span>
<span class="dy-video-meta-filter">动作</span>
</li>
<li class="dy-video-areas">
<span class="dy-split">|</span>
<span class="dy-video-tip">地区:</span>
<span class="dy-video-meta-filter">内地</span>
</li>
<li class="dy-video-starts">
<span class="dy-split">|</span>
<span class="dy-video-tip">年代:</span>
<span class="dy-video-meta-filter">2017</span>
</li>
</ul>
<p class="dy-video-intro">
动作巨星元豹(陈奕迅饰)走红二十余载却从未得到过最佳男主角,因与泰国黑帮老大“八面佛”交好而被怀疑参与跨国贩毒犯罪...
<a class="dy-video-intro-more">更多</a>
</p>
</div>
<div class="dy-video-meta-bg">
</div>
</div>
<div class="dy-video-poster">
<a class="dy-video-link">
<img class="dy-video-img" src="statics/images/9.jpg" alt="卧底巨星">
<span class="dy-video-complete"></span>
<span class="dy-video-date">
2017 年
</span>
<span class="dy-video-bg"></span>
</a>
</div>
<div class="dy-video-primary">
<h4 class="dy-video-title"><a>
卧底巨星
</a>
</h4>
<span class="dy-video-rating">
5.2
</span>
</div>
</li>
<li data- class="dy-video-item dy-video-meta-right">
<div class="dy-video-meta">
<div class="dy-video-meta-bg">
</div>
<div class="dy-video-meta-dy">
<h4 class="dy-video-title">
<a>
这就是命
</a>
</h4>
<span class="dy-video-rating">5.9</span>
<ul class="dy-video-meta-list">
<li class="dy-video-actors">
<span class="dy-video-tip">
主演:
</span>
<a>王迅</a>
<a>曾志伟</a>
</li>
<li class="dy-video-types">
<span class="dy-video-tip">类型:</span>
<span class="dy-video-meta-filter">喜剧</span>
<span class="dy-video-meta-filter">犯罪</span>
</li>
<li class="dy-video-areas">
<span class="dy-split">|</span>
<span class="dy-video-tip">地区:</span>
<span class="dy-video-meta-filter">内地</span>
</li>
<li class="dy-video-starts">
<span class="dy-split">|</span>
<span class="dy-video-tip">年代:</span>
<span class="dy-video-meta-filter">2017</span>
</li>
</ul>
<p class="dy-video-intro">
一事无成的落魄作家孟大卫(王迅 饰)与妻子杨晓楠(于莎莎 饰)感情遇危机,偏又雪上加霜被诊患癌。心灰意冷的孟大卫购...
<a class="dy-video-intro-more">更多</a>
</p>
</div>
<div class="dy-video-meta-bg">
</div>
</div>
<div class="dy-video-poster">
<a class="dy-video-link">
<img class="dy-video-img" src="statics/images/10.jpg" alt="这就是命">
<span class="dy-video-complete"></span>
<span class="dy-video-date">
2017 年
</span>
<span class="dy-video-bg"></span>
</a>
</div>
<div class="dy-video-primary">
<h4 class="dy-video-title"><a>
这就是命
</a>
</h4>
<span class="dy-video-rating">
5.9
</span>
</div>
</li>
<li data- class="dy-video-item dy-video-meta-left">
<div class="dy-video-meta">
<div class="dy-video-meta-bg">
</div>
<div class="dy-video-meta-dy">
<h4 class="dy-video-title">
<a>
祖宗十九代
</a>
</h4>
<span class="dy-video-rating">5.9</span>
<ul class="dy-video-meta-list">
<li class="dy-video-actors">
<span class="dy-video-tip">
主演:
</span>
<a>岳云鹏</a>
<a>吴京</a>
</li>
<li class="dy-video-types">
<span class="dy-video-tip">类型:</span>
<span class="dy-video-meta-filter">喜剧</span>
<span class="dy-video-meta-filter">奇幻</span>
</li>
<li class="dy-video-areas">
<span class="dy-split">|</span>
<span class="dy-video-tip">地区:</span>
<span class="dy-video-meta-filter">内地</span>
</li>
<li class="dy-video-starts">
<span class="dy-split">|</span>
<span class="dy-video-tip">年代:</span>
<span class="dy-video-meta-filter">2018</span>
</li>
</ul>
<p class="dy-video-intro">
一个在现实中失意的青年作家小贝,在现实碰壁而低落的夜晚,经历穿越20世纪初拯救陷入帮派麻烦的祖先、清朝和参加科举考...
<a class="dy-video-intro-more">更多</a>
</p>
</div>
<div class="dy-video-meta-bg">
</div>
</div>
<div class="dy-video-poster">
<a class="dy-video-link">
<img class="dy-video-img" src="statics/images/11.jpg" alt="祖宗十九代">
<span class="dy-video-nocomplete"></span>
<span class="dy-video-date">
2018 年
</span>
<span class="dy-video-bg"></span>
<span class="s-pay"></span>
</a>
</div>
<div class="dy-video-primary">
<h4 class="dy-video-title"><a>
祖宗十九代
</a>
</h4>
<span class="dy-video-rating">
5.9
</span>
</div>
</li>
<li data- class="dy-video-item dy-video-item-last dy-video-meta-left">
<div class="dy-video-meta">
<div class="dy-video-meta-bg">
</div>
<div class="dy-video-meta-dy">
<h4 class="dy-video-title">
<a>
快把我哥带走
</a>
</h4>
<span class="dy-video-rating">7.3</span>
<ul class="dy-video-meta-list">
<li class="dy-video-actors">
<span class="dy-video-tip">
主演:
</span>
<a>张子枫</a>
<a> 彭昱畅</a>
</li>
<li class="dy-video-types">
<span class="dy-video-tip">类型:</span>
<span class="dy-video-meta-filter">喜剧</span>
<span class="dy-video-meta-filter">奇幻</span>
</li>
<li class="dy-video-areas">
<span class="dy-split">|</span>
<span class="dy-video-tip">地区:</span>
<span class="dy-video-meta-filter">内地</span>
</li>
<li class="dy-video-starts">
<span class="dy-split">|</span>
<span class="dy-video-tip">年代:</span>
<span class="dy-video-meta-filter">2018</span>
</li>
</ul>
<p class="dy-video-intro">
拥有一个每天耍贱整蛊妹妹、毫无家庭感的哥哥是一种什么感受?油炸还是蒸锅?时秒只希望哥哥时分彻底消失!连珍贵的生日愿...
<a class="dy-video-intro-more">更多</a>
</p>
</div>
<div class="dy-video-meta-bg">
</div>
</div>
<div class="dy-video-poster">
<a class="dy-video-link">
<img class="dy-video-img" src="statics/images/12.jpg" alt="快把我哥带走">
<span class="dy-video-nocomplete"></span>
<span class="dy-video-date">
2018 年
</span>
<span class="dy-video-bg"></span>
<span class="s-pay"></span>
</a>
</div>
<div class="dy-video-primary">
<h4 class="dy-video-title"><a>
快把我哥带走
</a>
</h4>
<span class="dy-video-rating">
7.3
</span>
</div>
</li>
</ul>
</div>
</div>
</div>