Home  >  Article  >  Web Front-end  >  A method to automatically adapt the width of absolutely positioned DIV_Experience exchange

A method to automatically adapt the width of absolutely positioned DIV_Experience exchange

WBOY
WBOYOriginal
2016-05-16 12:09:191830browse

I just used position:absolute;

This code will have no problem in IE7 and FIREFOX, but it will not be supported in IE6 and below;


[Ctrl+A Select all Note: If you need to introduce external Js, you need to refresh to execute ]

So for IE6 I Added a
Now it’s done;

[Ctrl+A Select all Note: If you need to introduce external Js, you need to refresh to execute it ]

But I don’t want to be in hr appears on the page; so I added a b


[Ctrl+A Select all Note: If you need to introduce external Js, you need to refresh to execute ]

This is one method ; It’s a method that I really don’t know how to deal with this thing; who knows what the real method is; please tell me;

This is the final effect;

[Ctrl+A to select all Note: If you need to introduce external Js, you need to refresh it to execute ]
Statement:
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