今天看到一篇有关 css3事件的博文,一时兴起便整理下相关的资料。 点击按钮,可以实现开关的滑动效果。
今天看到一篇有关 css3事件的博文,一时兴起便整理下相关的资料。 点击按钮,可以实现开关的滑动效果。
今天看到一篇有关 css3事件的博文,一时兴起便整理下相关的资料。 点击按钮,可以实现开关的滑动效果。
.toggle input:checked + .ss div {<br /> transform: translate3d(60px, 0, 0);<br /> background-color: #fff;<br />}<br />.has-switch {<br /> display: inline-block;<br /> cursor: pointer;<br /> -webkit-border-radius: 5px;<br /> -moz-border-radius: 5px;<br /> border-radius: 5px;<br /> border: 1px solid;<br /> border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);<br /> position: relative;<br /> text-align: left;<br /> overflow: hidden;<br /> line-height: 8px;<br /> -webkit-user-select: none;<br /> -moz-user-select: none;<br /> -ms-user-select: none;<br /> -o-user-select: none;<br /> user-select: none;<br /> min-width: 100px;<br />}<br />.has-switch > div.switch-on {<br /> left: 0%;<br />}<br />.has-switch > div.switch-animate {<br /> -webkit-transition: left 0.5s;<br /> -moz-transition: left 0.5s;<br /> -o-transition: left 0.5s;<br /> transition: left 0.5s;<br />}<br />.has-switch > div {<br /> display: inline-block;<br /> width: 150%;<br /> position: relative;<br /> top: 0;<br />}<br />.has-switch span.switch-left {<br /> color: #ffffff;<br /> text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);<br /> background-color: #005fcc;<br /> background-image: -moz-linear-gradient(top, #0044cc, #0088cc);<br /> background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0044cc), to(#0088cc));<br /> background-image: -webkit-linear-gradient(top, #0044cc, #0088cc);<br /> background-image: -o-linear-gradient(top, #0044cc, #0088cc);<br /> background-image: linear-gradient(to bottom, #0044cc, #0088cc);<br /> background-repeat: repeat-x;<br /> filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0044cc', endColorstr='#ff0088cc', GradientType=0);<br /> border-color: #0088cc #0088cc #005580;<br /> border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);<br /> filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);<br />}<br />.has-switch span.switch-left {<br /> -webkit-border-top-left-radius: 4px;<br /> -moz-border-radius-topleft: 4px;<br /> border-top-left-radius: 4px;<br /> -webkit-border-bottom-left-radius: 4px;<br /> -moz-border-radius-bottomleft: 4px;<br /> border-bottom-left-radius: 4px;<br />}<br />.has-switch span {<br /> text-align: center;<br /> z-index: 1;<br /> width: 33%;<br />}<br />.has-switch span, .has-switch label {<br /> -webkit-box-sizing: border-box;<br /> -moz-box-sizing: border-box;<br /> box-sizing: border-box;<br /> cursor: pointer;<br /> position: relative;<br /> display: inline-block;<br /> height: 100%;<br /> padding-bottom: 4px;<br /> padding-top: 4px;<br /> font-size: 14px;<br /> line-height: 20px;<br />}<br />.has-switch label {<br /> text-align: center;<br /> margin-top: -1px;<br /> margin-bottom: -1px;<br /> z-index: 100;<br /> width: 34%;<br /> border-left: 1px solid #cccccc;<br /> border-right: 1px solid #cccccc;<br /> color: #ffffff;<br /> text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);<br /> background-color: #f5f5f5;<br /> background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);<br /> background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));<br /> background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);<br /> background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);<br /> background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);<br /> background-repeat: repeat-x;<br /> filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);<br /> border-color: #e6e6e6 #e6e6e6 #bfbfbf;<br /> border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);<br /> filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);<br />}<br />.has-switch span, .has-switch label {<br /> -webkit-box-sizing: border-box;<br /> -moz-box-sizing: border-box;<br /> box-sizing: border-box;<br /> cursor: pointer;<br /> position: relative;<br /> display: inline-block;<br /> height: 100%;<br /> padding-bottom: 4px;<br /> padding-top: 4px;<br /> font-size: 14px;<br /> line-height: 20px;<br />}<br />.has-switch span.switch-right {<br /> color: #333333;<br /> text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);<br /> background-color: #f0f0f0;<br /> background-image: -moz-linear-gradient(top, #e6e6e6, #ffffff);<br /> background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#e6e6e6), to(#ffffff));<br /> background-image: -webkit-linear-gradient(top, #e6e6e6, #ffffff);<br /> background-image: -o-linear-gradient(top, #e6e6e6, #ffffff);<br /> background-image: linear-gradient(to bottom, #e6e6e6, #ffffff);<br /> background-repeat: repeat-x;<br /> filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe6e6e6', endColorstr='#ffffffff', GradientType=0);<br /> border-color: #ffffff #ffffff #d9d9d9;<br /> border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);<br /> filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);<br />}<br />.has-switch span {<br /> text-align: center;<br /> z-index: 1;<br /> width: 33%;<br />}<br />.has-switch span, .has-switch label {<br /> -webkit-box-sizing: border-box;<br /> -moz-box-sizing: border-box;<br /> box-sizing: border-box;<br /> cursor: pointer;<br /> position: relative;<br /> display: inline-block;<br /> height: 100%;<br /> padding-bottom: 4px;<br /> padding-top: 4px;<br /> font-size: 14px;<br /> line-height: 20px;<br />}<br />.has-switch input[type=checkbox] {<br /> display: none;<br />}<br />.has-switch > div.switch-off {<br /> left: -50%;<br />}<br /><br /><strong>html</strong>部分
<br /><br /><br />
<div class="switch has-switch"><br /> <div class="switch-on switch-animate"><input type="checkbox" checked=""><br /> <span class="switch-left">ON</span><label><br /> </label><span class="switch-right">OFF</span><br /> </div><br /></div><br /><br /><strong>js</strong>部分
<strong> </strong>
<script src="jquery.min.js"></script><br /><script><br /> $(function(){<br /> var animate=$(".switch-animate");<br /> animate.on("click",function(){<br /> if ($(this).hasClass("switch-on")){<br /> $(this).removeClass("switch-on").addClass("switch-off");<br /> }<br /> else {<br /> $(this).addClass("switch-on").removeClass("switch-off");<br /> }<br /> })<br /><br /> })<br /></script>
<strong><br /><br /></strong>

Htmlisnotaprogramminglanguage; itisamarkuplanguage.1) htmlstructuresandformatswebcontentusingtags.2) itworksporstylingandjavaScriptOfforIncincivity, WebDevelopment 향상.

HTML은 웹 페이지 구조를 구축하는 초석입니다. 1. HTML은 컨텐츠 구조와 의미론 및 사용 등을 정의합니다. 태그. 2. SEO 효과를 향상시키기 위해 시맨틱 마커 등을 제공합니다. 3. 태그를 통한 사용자 상호 작용을 실현하려면 형식 검증에주의를 기울이십시오. 4. 자바 스크립트와 결합하여 동적 효과를 달성하기 위해 고급 요소를 사용하십시오. 5. 일반적인 오류에는 탈수 된 레이블과 인용되지 않은 속성 값이 포함되며 검증 도구가 필요합니다. 6. 최적화 전략에는 HTTP 요청 감소, HTML 압축, 시맨틱 태그 사용 등이 포함됩니다.

HTML은 웹 페이지를 작성하는 데 사용되는 언어로, 태그 및 속성을 통해 웹 페이지 구조 및 컨텐츠를 정의합니다. 1) HTML과 같은 태그를 통해 문서 구조를 구성합니다. 2) 브라우저는 HTML을 구문 분석하여 DOM을 빌드하고 웹 페이지를 렌더링합니다. 3) 멀티미디어 기능을 향상시키는 HTML5의 새로운 기능. 4) 일반적인 오류에는 탈수 된 레이블과 인용되지 않은 속성 값이 포함됩니다. 5) 최적화 제안에는 시맨틱 태그 사용 및 파일 크기 감소가 포함됩니다.

WebDevelopmentReliesonHtml, CSS 및 JavaScript : 1) HtmlStructuresContent, 2) CSSSTYLESIT, 및 3) JAVASCRIPTADDSINGINTERACTIVITY, BASISOFMODERNWEBEXPERIENCES를 형성합니다.

HTML의 역할은 태그 및 속성을 통해 웹 페이지의 구조와 내용을 정의하는 것입니다. 1. HTML은 읽기 쉽고 이해하기 쉽게하는 태그를 통해 컨텐츠를 구성합니다. 2. 접근성 및 SEO와 같은 시맨틱 태그 등을 사용하십시오. 3. HTML 코드를 최적화하면 웹 페이지로드 속도 및 사용자 경험이 향상 될 수 있습니다.

"Code"는 "Code"BroadlyIncludeLugageslikeJavaScriptandPyThonforFunctureS (htMlisAspecificTypeofCodeFocudecturecturingWebContent)

HTML, CSS 및 JavaScript는 웹 개발의 세 가지 기둥입니다. 1. HTML은 웹 페이지 구조를 정의하고 등과 같은 태그를 사용합니다. 2. CSS는 색상, 글꼴 크기 등과 같은 선택기 및 속성을 사용하여 웹 페이지 스타일을 제어합니다.

HTML은 웹 구조를 정의하고 CSS는 스타일과 레이아웃을 담당하며 JavaScript는 동적 상호 작용을 제공합니다. 세 사람은 웹 개발에서 의무를 수행하고 화려한 웹 사이트를 공동으로 구축합니다.


핫 AI 도구

Undresser.AI Undress
사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover
사진에서 옷을 제거하는 온라인 AI 도구입니다.

Undress AI Tool
무료로 이미지를 벗다

Clothoff.io
AI 옷 제거제

AI Hentai Generator
AI Hentai를 무료로 생성하십시오.

인기 기사

뜨거운 도구

SublimeText3 중국어 버전
중국어 버전, 사용하기 매우 쉽습니다.

Atom Editor Mac 버전 다운로드
가장 인기 있는 오픈 소스 편집기

VSCode Windows 64비트 다운로드
Microsoft에서 출시한 강력한 무료 IDE 편집기

스튜디오 13.0.1 보내기
강력한 PHP 통합 개발 환경

DVWA
DVWA(Damn Vulnerable Web App)는 매우 취약한 PHP/MySQL 웹 애플리케이션입니다. 주요 목표는 보안 전문가가 법적 환경에서 자신의 기술과 도구를 테스트하고, 웹 개발자가 웹 응용 프로그램 보안 프로세스를 더 잘 이해할 수 있도록 돕고, 교사/학생이 교실 환경 웹 응용 프로그램에서 가르치고 배울 수 있도록 돕는 것입니다. 보안. DVWA의 목표는 다양한 난이도의 간단하고 간단한 인터페이스를 통해 가장 일반적인 웹 취약점 중 일부를 연습하는 것입니다. 이 소프트웨어는
