Home > Web Front-end > HTML Tutorial > div can input content without using input as input box to block automatic input style_HTML/Xhtml_Web page production

div can input content without using input as input box to block automatic input style_HTML/Xhtml_Web page production

WBOY
Release: 2016-05-16 16:38:47
Original
1396 people have browsed it

Today I designed a dynamic window style, and found that when the mouse clicks on the input, the style automatically added by the browser is very inconsistent with the overall style of the website. Although the intelligent function of the browser is very advanced, sometimes it will inevitably affect the consistency of the overall design.

Then I thought about not using input as the input box, and replaced it with

Copy code
The code is as follows:



Thought it can avoid the browser's "smart" " function, I didn't expect that the browser was too smart, and the effect was exactly the same. I had no choice but to go to Du Niang. Later I found out that my css reserve was not enough. It was pitiful (self-examination)

css There is such an attribute in

Copy the code
The code is as follows:

.content{outline :none;}

And this is css3 and its brother has already had it. I actually...
Related labels:
div
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template