纯css实现鼠标滑过弹出层效果
网站建设 2023-01-28 21:39www.1681989.com免费网站
复制代码
代码如下:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://.w3./TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://.w3./1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css" >
{marg:0; paddg:0;} / 所有元素外边距为0 内边距为0 /
/ body中元素字体大小为12px,字体样式为:"Times New Roman", Times, serif,背景色:#333 /
body{font-size:12px; font-family:"Times New Roman", Times, serif; background-color:#333;}
/ id为ma的元素上下外边距为100px,左右外边距为自动;宽度为300px /
#ma{marg:100px auto; width:300px;}
/ id为ma的元素中无序列表列表样式为隐藏 /
#ma ul{list-style:none;}
/ id为ma的元素中的无序列表下的li块 行高为20px, 下边框的样式为1px dashed #FC0 /
#ma ul li{le-height:20px; border-bottom:1px dashed #FC0;}
/ id为ma的元素中的无序列表下的li块 中的a标签 颜色为#E7E7E7;关闭文本修饰;相对定位;元素当做块元素显示,前后会有换行符/
#ma ul li a{color:#E7E7E7; text-decoration:none; position:relative; display:block;}
/ id为ma的元素中的无序列表下的li块 中的a标签 下的div元素 隐藏 /
<span style="color:#FF0000"> #ma ul li a div{display:none;}
#ma ul li a:hover{color:#FFF;}
#ma ul li a:hover div{position:absolute; left:280px; :-40px; background-color:#FFF; display:block; width:300px; height:100px; color:#000; overflow:hidden;}
#ma ul li a:hover div dt{float:left; width:8px; background:url(234.gif) center no-repeat;height:100px; display:block; background-color:#333;}
#ma ul li a:hover div dd{float:right ; width:270px; height:auto; le-height:18px; paddg:6px 10px;}</span>
</style>
</head>
<body>
<p>
</p>
<p>
</p>
<div id="ma">
<ul>
<li><a href="javascript:void(0);">Customizg Form Objects and Validatg Forms
<div><dt></dt>
<dd>Rollovers are very easy usg Dreamweaver. All you need to do is export two images from Fireworks (the image itself and the rollover image). Next, Dreamweaver, click on Insert>Rollover Image. Give a name to the image, choose the images from the folder icon and fally give the lk to the image. That's it! You've now got a great lookg effect for your site.
</dd>
</div>
</a>
</li>
<li>
<a href="javascript:void(0);">Best Time Savg Tips Dreamweaver
<div><dt></dt>
<dd>Before uploadg your site you need to make sure that there are no dead lks the site. You can do this by gog to your site map, right clickg on any of the files and then clickg on 'check lks'. Now you can choose to either check lks the entire site or with the selected file or folder. If there are any dead lks you can fix them by usg the folder icon to select the right files.
</dd>
</div>
</a>
</li>
<li>
<a href="javascript:void(0);">Customizg Form Objects and Validatg Forms
<div><dt></dt>
<dd>After resizg an image Dreamweaver, click on Commands>Optimize Image Fireworks. You will get a dialog box sayg 'Editg image.gif. Do you wish to use an existg Fireworks document as the source of image.gif.' Click on No and then click Update. The image is now updated and optimized Dreamweaver. This saves you the trouble of openg the image Fireworks, resizg it and exportg it aga.
</dd>
</div>
</a>
</li>
<li>
<a href="javascript:void(0);">Dreamweaver Tips & Tutorials
<div><dt></dt>
<dd>We've shared some really cool tips on Macromedia Dreamweaver this article. They are handy tips that all Dreamweaver users should know about to allow more flexibility and creativity while designg sites Dreamweaver.
</dd>
</div>
</a>
</li>
<li>
<a href="javascript:void(0);">Jump Menus, Pop Up Wdows and Swap Images
<div><dt></dt>
<dd>Rollovers are very easy usg Dreamweaver. All you need to do is export two images from Fireworks (the image itself and the rollover image). Next, Dreamweaver, click on Insert>Rollover Image.
</dd>
</div>
</a>
</li>
</ul>
</div>
</body>
</html>
上一篇:css页面左中右分栏布局示例
下一篇:css实现文字竖排效果示例代码
网站设计
- 静宁会SEO的网站建设公司:全面提升您的网络影
- 提升在线业务的关键:选择最佳的丽水网站建设
- 浙江网站优化发展潜力如何
- 井研专业的网站建设公司:打造您的在线品牌
- 灵山SEO网站建设公司:提升您的在线业务表现
- 蒙城网站建设优化公司:提升您网站表现的理想
- 阳谷企业网站优化:提升线上业务力的关键
- 樟树专业的网站建设公司:打造您在线业务的坚
- 通河百度SEO排名的策略与技巧
- 重庆百度快照排名如何进行精准的客户引流
- 重庆百度快照排名
- 常宁便宜的建站公司:助您轻松打造在线业务
- 巫溪百度网站优化:提升网站曝光率与流量的关
- 湖北整站优化怎么做才能放大客户需求
- 闸北网站建设多少钱?全面解析与预算规划
- 辽宁企业网站优化怎么做电话营销