php气泡效果,CSS_纯CSS3实现鼠标悬停提示气泡效果,<!DOCTYPE HTML> <html> & - phpStudy...

CSS3制作鼠标悬停提示气泡内容菜单

body{

background:#D6D3C9;

color:#383835;

font-family:Arial, Arial, Helvetica, sans-serif;

}

#bubblemenu li {

display: inline;

margin-left: 15px;

cursor:pointer;

}

#bubblemenu li > div {

width: 150px;

min-height: 100px;

position: absolute;

display: inline;

margin-left: -120px;

padding: 5px;

visibility:hidden;

opacity: 0;

margin-top: -125px;

background: #ffffff;

font-size:1em;

/* Setting the border-radius property for all Browsers */

-moz-border-radius: 5px; /* Firefox */

-webkit-border-radius: 5px; /* Safari and Chrome */

border-radius: 5px; /* Browsers that Support it like Opera */

/* Setting the box-shadow property for all Browsers */

-moz-box-shadow: 0 0 8px gray; /* Firefox */

-webkit-box-shadow: 0 0 8px gray; /* Safari and Chrome */

filter: progid:DXImageTransform.Microsoft.Shadow(color='#272229', Direction=135, Strength=3); /* IE */

box-shadow: 0 0 8px gray; /* Browsers that Support it like Opera */

/* Setting the transition property for all Browsers */

-moz-transition: all 0.5s ease-in-out; /* Firefox */

-webkit-transition: all 0.5s ease-in-out; /* Safari and Chrome */

-o-transition: all 0.5s ease-in-out; /* Opera */

transition: all 0.5s ease-in-out; /* Browsers that Support it */

}

#bubblemenu li:hover > div {

visibility:visible;

opacity: 1;

margin-top: -150px;

/* Setting the transition property for all Browsers */

-moz-transition: all 0.5s ease-in-out; /* Firefox */

-webkit-transition: all 0.5s ease-in-out; /* Safari and Chrome */

-o-transition: all 0.5s ease-in-out; /* Opera */

transition: all 0.5s ease-in-out; /* Browsers that Support it */

}

Coda Effect With CSS3

  • Penn Jillett

    My favorite thing about the Internet is that you get to go into the private world of real creeps without having to smell them.

  • Thomas Watson

    I think there is a world market for maybe five computers.

  • Bill Gates

    640K ought to be enough for anybody.

  • Sam Ewing

    Computers are like bikinis. They save people a lot of guesswork.

提示:您可以先修改部分代码再运行

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
这段代码是一个基本的 HTML 结构,用于创建一个网页。以下是对代码的分析: 1. `&lt;!DOCTYPE html&gt;`:这是 HTML5 的文档类型声明,告诉浏览器使用 HTML5 解析页面。 2. `&lt;html&gt;` 标签:表示 HTML 文档的根元素。 3. `&lt;head&gt;` 标签:用于定义 HTML 文档的头部,通常包含元数据和引用外部资源。 4. `&lt;meta&gt;` 标签:用于指定 HTML 文档的元数据,如字符编码、视口设置等。 5. `&lt;title&gt;` 标签:用于定义网页的标题,将显示在浏览器的标题栏或标签页上。 6. `&lt;link&gt;` 标签:用于引入外部样式表文件,通过 `href` 属性指定样式表文件的路径。 7. `&lt;body&gt;` 标签:用于定义 HTML 文档的主体部分,包含页面的具体内容。 8. `&lt;div&gt;` 标签:用于创建一个容器,可以用来包裹其他元素。 9. `id` 属性:通过给元素添加 `id` 属性,可以为其指定一个唯一的标识符,以便在 CSS 或 JavaScript 中进行选择和操作。 10. `class` 属性:通过给元素添加 `class` 属性,可以为其指定一个或多个类名,以便在 CSS 中应用样式或在 JavaScript 中选择和操作。 11. `&lt;span&gt;` 标签:用于创建一个行内元素,通常用于包裹文本或者其他行内内容。 总的来说,这段代码创建了一个基本的 HTML 结构,其中包含了一个头部部分和一个主体部分。头部部分定义了字符编码、标题和外部样式表的引用。主体部分包含了一个具有导航栏的容器。导航栏中包含了四个链接,可以用于导航到不同的页面或部分。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值