javascript - html伸缩式侧边栏代码?
类似于这种 http://www.htmleaf.com/Demo/20141010127.html 。
求简单的写个例子,可以用jquery。
或者给我一个思路也行。
<code> <meta charset="UTF-8"> <title>Document</title> <style type="text/css"> ** {margin: 0;padding: 0;} #menu {width: 100%;height: 50px;position: absolute;top: 100px;background-color: #31223b;} #sidebar {width: 50px;height: 50px;background-color: #ffbbbb;} </style> <div id="menu"> <div id="sidebar"></div> </div> 基本布局我已经写好了,代码编辑器竟然不支持 * 选择器!所以我写了两个 * 号! </code>
顺便问一下,用sublime的有吗?快捷方式写出来的基本html文档中,怎么改成?
回复内容:
类似于这种 http://www.htmleaf.com/Demo/20141010127.html 。
求简单的写个例子,可以用jquery。
或者给我一个思路也行。
<code> <meta charset="UTF-8"> <title>Document</title> <style type="text/css"> ** {margin: 0;padding: 0;} #menu {width: 100%;height: 50px;position: absolute;top: 100px;background-color: #31223b;} #sidebar {width: 50px;height: 50px;background-color: #ffbbbb;} </style> <div id="menu"> <div id="sidebar"></div> </div> 基本布局我已经写好了,代码编辑器竟然不支持 * 选择器!所以我写了两个 * 号! </code>
顺便问一下,用sublime的有吗?快捷方式写出来的基本html文档中,怎么改成?
给三个 class 分别对应隐藏,图标模式,全部模式三个模式下的宽度,然后在对应的事件上绑定相应的 class 就好了。
标签快捷补完是 emmet 的功能,只需要 html 的话可以直接输入 html
然后 tab,如果是要修改语言的话需要 ![lang=zh-cn]
或者你也可以 !!!
和 doc
两个配合使用,更多的快捷方式可以查看 emmit cheatsheet 自己在 config 里面定义一个快捷模板,这个可以查阅官方 readme 了解更多。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

PHP is mainly procedural programming, but also supports object-oriented programming (OOP); Python supports a variety of paradigms, including OOP, functional and procedural programming. PHP is suitable for web development, and Python is suitable for a variety of applications such as data analysis and machine learning.

The roles of HTML, CSS and JavaScript in web development are: 1. HTML defines the web page structure, 2. CSS controls the web page style, and 3. JavaScript adds dynamic behavior. Together, they build the framework, aesthetics and interactivity of modern websites.

PHP is suitable for web development and rapid prototyping, and Python is suitable for data science and machine learning. 1.PHP is used for dynamic web development, with simple syntax and suitable for rapid development. 2. Python has concise syntax, is suitable for multiple fields, and has a strong library ecosystem.

PHP originated in 1994 and was developed by RasmusLerdorf. It was originally used to track website visitors and gradually evolved into a server-side scripting language and was widely used in web development. Python was developed by Guidovan Rossum in the late 1980s and was first released in 1991. It emphasizes code readability and simplicity, and is suitable for scientific computing, data analysis and other fields.

The future of HTML is full of infinite possibilities. 1) New features and standards will include more semantic tags and the popularity of WebComponents. 2) The web design trend will continue to develop towards responsive and accessible design. 3) Performance optimization will improve the user experience through responsive image loading and lazy loading technologies.

PHP is suitable for web development and content management systems, and Python is suitable for data science, machine learning and automation scripts. 1.PHP performs well in building fast and scalable websites and applications and is commonly used in CMS such as WordPress. 2. Python has performed outstandingly in the fields of data science and machine learning, with rich libraries such as NumPy and TensorFlow.

PHPhassignificantlyimpactedwebdevelopmentandextendsbeyondit.1)ItpowersmajorplatformslikeWordPressandexcelsindatabaseinteractions.2)PHP'sadaptabilityallowsittoscaleforlargeapplicationsusingframeworkslikeLaravel.3)Beyondweb,PHPisusedincommand-linescrip

HTML5 is a key technology for building modern web pages, providing many new elements and features. 1. HTML5 introduces semantic elements such as, , etc., which enhances web page structure and SEO. 2. Support multimedia elements and embed media without plug-ins. 3. Forms enhance new input types and verification properties, simplifying the verification process. 4. Offer offline and local storage functions to improve web page performance and user experience.
