CSS 扩大可点击区域(热区)

html-css022

CSS 扩大可点击区域(热区),第1张

目的: 想给一个简单的小按钮扩大其热区在四个方向上均向外扩张10px

解决方案:

可以将伪元素设置为任何尺寸位置或形状甚至是脱离原来的位置

案例如下,或者参考网址 play.csssecrets.io/hit-area

原文

兄弟,正常字符(汉字,或汉字和字母)的换行应该是没什么问题的,

我估计你的问题是连续的数字和英文字符不换行。

对于div,p等块级元素:

正常文字的换行(亚洲文字和非亚洲文字)元素拥有默认的white-space:normal,当定义的宽度之后自动换行

html

正常文字的换行(亚洲文字和非亚洲文字)元素拥有默认的white-space:normal,当定义

css

#wrap{white-space:normalwidth:200px}

1.(IE浏览器)连续的英文字符和阿拉伯数字,使用word-wrap : break-word 或者word-break:break-all实现强制断行

#wrap{word-break:break-allwidth:200px}

或者

#wrap{word-wrap:break-wordwidth:200px}

2.(Firefox浏览器)连续的英文字符和阿拉伯数字的断行,Firefox的所有版本的没有解决这个问题,我们只有让超出边界的字符隐藏或者,给容器添加滚动条

#wrap{word-break:break-allwidth:200pxoverflow:auto}

CSS权威指南

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=145564

The CSS Anthology (第二版) CSS设计大师设计思路与实践

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=146748

HTML &XHTML 权威指南(英文CHM版+中文PDF版)

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=148039

HTML &XHTML - The Complete Reference第四版

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=176158

Building a Web Site 傻瓜书

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=156572

HTML 4 傻瓜书 第五版

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=156578

css禅意花园 (高级CSS开发)

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=148107

CSS与DHTML精髓

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=148097

CSS网页设计师

http://bbs.topsage.com/dispbbs.asp?BoardID=123&ID=146253

CSS Hacks and Filter

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=165935

CSS Mastery高级Web开发标准

http://bbs.topsage.com/dispbbs.asp?BoardID=123&ID=145854

CSS 设计艺术

http://bbs.topsage.com/dispbbs.asp?BoardID=123&ID=145851

CSS代码效果对比学习

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=152650

CSS Web Design傻瓜书

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=152685

Pro CSS Techniques

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=152687

CSS HTML高级设计模式 Pro CSS and HTML Design Patterns

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=149562

Build your Own WebSite - The Right Way Using HTML and CSS

http://bbs.topsage.com/dispbbs.asp?BoardID=123&ID=151264

Mastering Integrated HTML and CSS

http://bbs.topsage.com/dispbbs.asp?BoardID=123&ID=147086

CSS Web Development从入门到精通

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=152691

Web Publishing with HTML and CSS in One Hour a Day

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=152693

Designing with Web Standards 网站重构 英文+中文版

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=157284

Beginning HTML with CSS and XHTML

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=158794

XHTML Moving toward XML

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=159163

Building Smart Web 2.0 Applications

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=158104

How to Do Everything With HTML

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=158813

Teach Yourself HTML in 10 Minutes 第四版

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=176544

HTML,XHTML,and CSS 第六版 Visual Quickstart Guide

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=176488

Spatial Data on the Web:Modeling and Management

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=158897

AdvencED DOM Scripting Dynamic Web Design Techniques

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=158898

精通XHTML程序设计高级编程

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=159284

XHTML实例精解

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=159327

XHTML技术内幕

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=159325

HTML &XHTML - The Complete Reference第四版

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=176158

完美HTML设计 - 使用CSS不用Table (第二版)

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=160478

250 HTML and Web Design Secrets

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=164134

Return on Design

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=160791

Learn Javascript 高清晰PDF珍藏版

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=146076

JavaScript 宝典

http://bbs.topsage.com/dispbbs.asp?BoardID=123&ID=146270

JavaScript宝典(第六版)

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=152342

JavaScript实例宝典 PDF文字版

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=156457

Wrox Beginning JavaScript(第三版)

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=152688

Professional JavaScript for Web Developers

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=152647

Pro JavaScript Design Patterns

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=176842

The Art &Science of JavaScript

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=176836

JavaScript for breakfast

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=152641

JavaScript in 10 Simple Steps or Less

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=152692

JavaScript开发人员参考

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=152690

JavaScript参考大全第二版

http://bbs.topsage.com/dispbbs.asp?BoardID=123&ID=145384

JavaScript权威指南(第四版)

http://bbs.topsage.com/dispbbs.asp?BoardID=123&ID=144260

JavaScript快速查询手册

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=146378

Practical JavaScript DOM Scripting and Ajax Projects

http://bbs.topsage.com/dispbbs.asp?BoardID=123&ID=150277

JavaScript傻瓜书 第四版

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=156579

Javascript and Ajax for the Web 第六版

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=163607

高级Javascript 第二版

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=166763

Build Your Own Database Driven Website

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=167522

上百个超酷JS广告代码收集汇总 (第一辑)

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=154714

上百个超酷JS广告代码收集汇总 (第二辑)

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=154716

上百个超酷JS广告代码收集汇总 (第三辑)

http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=154718