如何讓背景圖片充滿整個屏幕?
方式一: 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 ...