target实现手风琴效果

2024-03-01 02:32
文章标签 实现 效果 target 手风琴

本文主要是介绍target实现手风琴效果,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

<!DOCTYPE html>
<html><head><meta charset="UTF-8"><title>手风琴</title><style type="text/css">*{margin: 0;padding: 0;list-style: none;font-weight: normal;}ul{width: 500px;margin: 50px auto;padding: 5px;}a{height: 40px;width: 500px;background: #ccc;border-radius: 10px;line-height: 40px ;text-indent: 1em;font-size: 22px;position: relative;margin-bottom: 20px;text-decoration: none;color:#00f;display: block;}a:after{content: "";width: 0;height: 0;display: inline-block;border-width: 6px;border-style: solid dashed dashed dashed;border-color: #fff transparent transparent transparent;position: absolute;right: 12px;top: 15px;}p{width: 480px;height: 70px;padding: 15px 10px 5px;margin-bottom: 20px;line-height: 20px;overflow: scroll;overflow-x: hidden;font-size: 14px;white-space: normal;word-break: break-all;display: none;}a:hover, a:active, a:focus, li:target a{color: #fff;background: #00f;}li:target a:after{transform: rotate(-90deg);}li:target p{display: block;}</style></head><body><ul><li id="click1"><a href="#click1">Brand</a><p>Wherever you are, and whoever you may be, there is one thing in which you and I are justalike at this monment, and in all the moments of our existence. We are not at rest, we are on a journey. Our life is a movement, a tendency, a steady, ceaseless progress towards an unseen goal.</p></li><li id="click2"><a href="#click2" >Two</a><p>We are gaining something, or losing something, or losing something, everyday. Even when our position and our character seem to remain precisely the same, they are changing. For the mereadvance of time is a change. It is not the same thing to have a bare field in  January and in July. The season makes the difference. The limitations that are childlike in the child are childish in the man.</p></li><li id="click3"><a href="#click3">Tree</a><p >Everything that we do is a step in one direction or another. Even the failure to do something is in itself a deed. it sets us forward or backward. the action of the negative pole of a magnetic needle is just as real as the action of the positive pole. To decline is to accept--the other alternative.</p></li></ul></body>
</html>
<li id="click1"><a href="#click1">Brand</a>
</li>

li的 id=”click1”和a的属性href=”#click1”不能忘记写。
这里写图片描述

这篇关于target实现手风琴效果的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/760921

相关文章

python+OpenCV反投影图像的实现示例详解

《python+OpenCV反投影图像的实现示例详解》:本文主要介绍python+OpenCV反投影图像的实现示例详解,本文通过实例代码图文并茂的形式给大家介绍的非常详细,感兴趣的朋友一起看看吧... 目录一、前言二、什么是反投影图像三、反投影图像的概念四、反向投影的工作原理一、利用反向投影backproj

Django之定时任务django-crontab的实现

《Django之定时任务django-crontab的实现》Django可以使用第三方库如django-crontab来实现定时任务的调度,本文主要介绍了Django之定时任务django-cront... 目录crontab安装django-crontab注册应用定时时间格式定时时间示例设置定时任务@符号

Python中edge-tts实现便捷语音合成

《Python中edge-tts实现便捷语音合成》edge-tts是一个功能强大的Python库,支持多种语言和声音选项,本文主要介绍了Python中edge-tts实现便捷语音合成,具有一定的参考价... 目录安装与环境设置文本转语音查找音色更改语音参数生成音频与字幕总结edge-tts 是一个功能强大的

Java实现按字节长度截取字符串

《Java实现按字节长度截取字符串》在Java中,由于字符串可能包含多字节字符,直接按字节长度截取可能会导致乱码或截取不准确的问题,下面我们就来看看几种按字节长度截取字符串的方法吧... 目录方法一:使用String的getBytes方法方法二:指定字符编码处理方法三:更精确的字符编码处理使用示例注意事项方

使用Python和PaddleOCR实现图文识别的代码和步骤

《使用Python和PaddleOCR实现图文识别的代码和步骤》在当今数字化时代,图文识别技术的应用越来越广泛,如文档数字化、信息提取等,PaddleOCR是百度开源的一款强大的OCR工具包,它集成了... 目录一、引言二、环境准备2.1 安装 python2.2 安装 PaddlePaddle2.3 安装

嵌入式Linux之使用设备树驱动GPIO的实现方式

《嵌入式Linux之使用设备树驱动GPIO的实现方式》:本文主要介绍嵌入式Linux之使用设备树驱动GPIO的实现方式,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐... 目录一、设备树配置1.1 添加 pinctrl 节点1.2 添加 LED 设备节点二、编写驱动程序2.1

Android 实现一个隐私弹窗功能

《Android实现一个隐私弹窗功能》:本文主要介绍Android实现一个隐私弹窗功能,本文通过实例代码给大家介绍的非常详细,感兴趣的朋友一起看看吧... 效果图如下:1. 设置同意、退出、点击用户协议、点击隐私协议的函数参数2. 《用户协议》、《隐私政策》设置成可点击的,且颜色要区分出来res/l

spring IOC的理解之原理和实现过程

《springIOC的理解之原理和实现过程》:本文主要介绍springIOC的理解之原理和实现过程,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录一、IoC 核心概念二、核心原理1. 容器架构2. 核心组件3. 工作流程三、关键实现机制1. Bean生命周期2.

Redis实现分布式锁全解析之从原理到实践过程

《Redis实现分布式锁全解析之从原理到实践过程》:本文主要介绍Redis实现分布式锁全解析之从原理到实践过程,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录一、背景介绍二、解决方案(一)使用 SETNX 命令(二)设置锁的过期时间(三)解决锁的误删问题(四)Re

Java根据IP地址实现归属地获取

《Java根据IP地址实现归属地获取》Ip2region是一个离线IP地址定位库和IP定位数据管理框架,这篇文章主要为大家详细介绍了Java如何使用Ip2region实现根据IP地址获取归属地,感兴趣... 目录一、使用Ip2region离线获取1、Ip2region简介2、导包3、下编程载xdb文件4、J