方式一: margin:0px; background: url(images/beijing.png) no-repeat; background-size:100% 100%; background-attachment:fixed; url(images/beijing.png)——图片 ...
方式一: margin:0px; background: url(images/beijing.png) no-repeat; background-size:100% 100%; background-attachment:fixed; url(images/beijing.png)——图片 ...
以上。 ...
...
...
的背景图是一张有着固定大小的图片,放上去之后,各种不适应,不和谐,后来就想到如果能让背景图自适应导航栏的 ...
了。 其实,该方案对所有的块级容器都可以生效。块级容器的宽高是动态的,那么背景图将自动伸缩,充满整个容器 ...
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>炫酷时钟</title> <style type="text/css"> ...
来源:http://www.cnblogs.com/QianBoy/p/7601171.html ...