ASP.NET中背景图片不能正常显示问题.

以下内容纯粹是个人总结的.不排除还有其它异常发生的可能性.

本人遇到的背景图片不能正常显示的问题有两种:

第一种是路径问题.

第二种是浏览器兼容问题.


第一种路径问题发生的原因,是不了解相对路径和绝对路径.通俗点像www.baidu.com,这样的是绝对路径.而相对路径是相对于站点上的目录而言的.

在这里需要注意的是,假如代码是background : url(bg.jpg),这表明,你声明这一行代码CSS文件和该图片是在同一个文件夹...所以很多不能显示背景图片的都是出错在路径.

假如bg.jpg放在images,而style.css放在Styles里面,声明背景图片代码如background : url(bg.jpg)就会出错了.这时候就要用相对路径background : url(../images/bg.jpg),注意,在/images前面要有两个点.这样就可以正常显示了.

发生第二种情况的前兆就是在Visual Studio里面的设计界面可以正常显示,但是用浏览器调试的时候却发现,背景图片又没有了..这时假如你没有禁止网页显示图片的话,最应该考虑的是浏览器兼容性问题,设另外一个浏览器为默认浏览器,然后再调试..


菜鸟总结的,如有不足,望大牛指点.也希望这点小小小经验能帮到感兴趣的人!!

 

 

 

 

 

 

dl.vmall.com/c0nifbdbxs
dl.vmall.com/c0d5hl7llf
dl.vmall.com/c0bmuzba12
dl.vmall.com/c0x43zoz4q
dl.vmall.com/c0qp41skai
dl.vmall.com/c05u3xa01b
dl.vmall.com/c0edyylqfn
dl.vmall.com/c0asbeywat
dl.vmall.com/c0dyamalne
dl.vmall.com/c02yutsget
dl.vmall.com/c0dj3w1fyo
dl.vmall.com/c0xey0h79y
dl.vmall.com/c00ajt619r
dl.vmall.com/c00zdeczub
dl.vmall.com/c0emkn4ldp
dl.vmall.com/c08jo03740
dl.vmall.com/c0bcyqwhs3
dl.vmall.com/c0sah9jonp
dl.vmall.com/c0wj07d5ru
dl.vmall.com/c0b0la8l8t
dl.vmall.com/c0brnch1nf
dl.vmall.com/c00ponzblt
dl.vmall.com/c0vi9h9w9a
dl.vmall.com/c04faayner
dl.vmall.com/c08iqhv163
dl.vmall.com/c0cxkt4fjn
dl.vmall.com/c09cd6xxmi
dl.vmall.com/c057waacu7
dl.vmall.com/c0l2irsfuz
dl.vmall.com/c0545g8r5u
dl.vmall.com/c08ax4ez4g
dl.vmall.com/c0du59v35x
dl.vmall.com/c00wvcea37
dl.vmall.com/c0khxcxqh1
dl.vmall.com/c03e5nbhyg
dl.vmall.com/c0xumk62yg
dl.vmall.com/c0855n45ja
dl.vmall.com/c0o0skmh3f
dl.vmall.com/c05anbzgvk
dl.vmall.com/c0v8387v5z
dl.vmall.com/c0lzoamdxs
dl.vmall.com/c0671h38e1
dl.vmall.com/c0myharapa
dl.vmall.com/c0pfsn8iw0
dl.vmall.com/c0zsid0atc
dl.vmall.com/c0zvp4d6rk
dl.vmall.com/c0hsnshfi8
dl.vmall.com/c0oaxx6bi1
dl.vmall.com/c0ryexnloq
dl.vmall.com/c07sppjaar
dl.vmall.com/c0qn4h76ma
dl.vmall.com/c0n8iipj8e
dl.vmall.com/c0kik5vkxp
dl.vmall.com/c000dyp1ry
dl.vmall.com/c0c7nzjqfi
dl.vmall.com/c0dsa2isi2
dl.vmall.com/c08e8da10w
dl.vmall.com/c0i4v7n3gf
dl.vmall.com/c02t7mf9q4
dl.vmall.com/c0vdd018xo
dl.vmall.com/c0x8v9biv5
dl.vmall.com/c0qa0fn8aa
dl.vmall.com/c0uot8pm4l
dl.vmall.com/c0nz6f0ai1
dl.vmall.com/c0awphracc
dl.vmall.com/c0aqci6n6t
dl.vmall.com/c0vpcw3ey9
dl.vmall.com/c0z5rpsun8
dl.vmall.com/c04yghxodc
dl.vmall.com/c01psp5qrg
dl.vmall.com/c0v04y05ry
dl.vmall.com/c034qzzf53
dl.vmall.com/c0fcuxzo92
dl.vmall.com/c0dd3zyw6u
dl.vmall.com/c02h2nxv2x
dl.vmall.com/c0fmaz0sj2
dl.vmall.com/c0by2a7txt
dl.vmall.com/c0auggx7h4
dl.vmall.com/c03850osf5
dl.vmall.com/c0oareyb7o
dl.vmall.com/c0qpughw2i
dl.vmall.com/c06tvtrgrf
dl.vmall.com/c0vuo67h12
dl.vmall.com/c0kevlwdlo
dl.vmall.com/c0udyjwbn6
dl.vmall.com/c0o263024j
dl.vmall.com/c0t3ty9iep
dl.vmall.com/c0fbr9vzxn
dl.vmall.com/c0vx1hwmqs
dl.vmall.com/c0a6b0zodj
dl.vmall.com/c0aqllrubc
dl.vmall.com/c02k5t2y2s
dl.vmall.com/c0bi44b3yj
dl.vmall.com/c0hhaaozkz
dl.vmall.com/c02emcu6ou
dl.vmall.com/c0d5u23ds1
dl.vmall.com/c026wcqcm4
dl.vmall.com/c0118wujsn
dl.vmall.com/c0p60n7xed
dl.vmall.com/c0hrk8x69d
dl.vmall.com/c057di3lww
dl.vmall.com/c0lue4jbi1
dl.vmall.com/c0dz5fdm2l
dl.vmall.com/c0r5lc01b7
dl.vmall.com/c040dllday
dl.vmall.com/c0i8ykhhad
dl.vmall.com/c0syqq5zox
dl.vmall.com/c06txei9tp
dl.vmall.com/c0ljhpbz88
dl.vmall.com/c0mti4y2df
dl.vmall.com/c0g49mok3a
dl.vmall.com/c000w3g7pf
dl.vmall.com/c0y7if371o
dl.vmall.com/c0wt2olcb4
dl.vmall.com/c0ls64pv6c
dl.vmall.com/c0ldvua2x8
dl.vmall.com/c0pdk35e9n
dl.vmall.com/c0syous9r8
dl.vmall.com/c04av4gmld
dl.vmall.com/c0hzsmi1tt
dl.vmall.com/c007a7533y
dl.vmall.com/c0n63z6is1
dl.vmall.com/c0l396lsjr
dl.vmall.com/c04kdjdvvj
dl.vmall.com/c0xrxvp0la
dl.vmall.com/c01nbos43h
dl.vmall.com/c0b5zfjazf
dl.vmall.com/c0vw96mzme
dl.vmall.com/c0dnlz4p2i
dl.vmall.com/c0a2sochrs
dl.vmall.com/c01p6nouc1
dl.vmall.com/c0lp4a5fop
dl.vmall.com/c02x9v0j0a
dl.vmall.com/c0z3dcqyyp
dl.vmall.com/c0i5la25n7
dl.vmall.com/c0byqxj5is
dl.vmall.com/c0mhwr2of2
dl.vmall.com/c03wa67xbc
dl.vmall.com/c0qmwaat0b
dl.vmall.com/c0s6z9abh6
dl.vmall.com/c0bseqni15
dl.vmall.com/c0gk8kkat5
dl.vmall.com/c0ni877n25
dl.vmall.com/c0gepoi4wy
dl.vmall.com/c0df0z2hbc
dl.vmall.com/c03pa4px5u
dl.vmall.com/c0s2x3jr0z
dl.vmall.com/c0xwuy7ewp
dl.vmall.com/c0rs4nsa7a
dl.vmall.com/c0b6ak68h9
dl.vmall.com/c0pr6yyanb
dl.vmall.com/c0rpennnki
dl.vmall.com/c0llnmi2cq
dl.vmall.com/c0yxdjyf4m
dl.vmall.com/c0infer8vf
dl.vmall.com/c05kg1aa9e
dl.vmall.com/c0iccy11wc
dl.vmall.com/c0emg50y5p
dl.vmall.com/c0xt8p3qy0
dl.vmall.com/c0vb6w9vpe
dl.vmall.com/c03tus6ull
dl.vmall.com/c0mgnzaj8r
dl.vmall.com/c0mdsembxg
dl.vmall.com/c0r5ma5w5j
dl.vmall.com/c0yzfbvxf9
dl.vmall.com/c0lflds196
dl.vmall.com/c0rcp82k0n
dl.vmall.com/c027u41ogn
dl.vmall.com/c0ao4pqcxr
dl.vmall.com/c0skiutydy
dl.vmall.com/c09ek7efho
dl.vmall.com/c010xcmgka
dl.vmall.com/c0z0tm6jg5
dl.vmall.com/c0lm1pe1mp
dl.vmall.com/c0pmazhlst
dl.vmall.com/c0u4kest3a
dl.vmall.com/c0pkx15ip9
dl.vmall.com/c0ccnfgk5u
dl.vmall.com/c0p9mn1a88
dl.vmall.com/c0fi8hc5f5
dl.vmall.com/c04enosppi
dl.vmall.com/c0ydlvh1b6
dl.vmall.com/c08jf6tokd
dl.vmall.com/c0co5pjcbh
dl.vmall.com/c0gaan9jb8
dl.vmall.com/c0zq5yn8vc
dl.vmall.com/c0eta5uvaa
dl.vmall.com/c0e1wjvkgn
dl.vmall.com/c0ufoad0g7
dl.vmall.com/c0d72yaxh0
dl.vmall.com/c09sqc1lyc
dl.vmall.com/c0xnfonftx
dl.vmall.com/c0kol9xhcr
dl.vmall.com/c01gx8p6i1
dl.vmall.com/c0la9uqo7y
dl.vmall.com/c034cgogxz
dl.vmall.com/c0nduacum7
dl.vmall.com/c0ygc0oa65
dl.vmall.com/c0dl2ep2wc
dl.vmall.com/c0chsnvxt7
dl.vmall.com/c0xtfikavx
dl.vmall.com/c0cvxmh7dl
dl.vmall.com/c0frkofttz
dl.vmall.com/c0ttlykf02
dl.vmall.com/c03a5r0twu
dl.vmall.com/c0w6hbuera
dl.vmall.com/c0bogc0tm1
dl.vmall.com/c0737k1sh3
dl.vmall.com/c09urzul0c
dl.vmall.com/c01xz3rsa7
dl.vmall.com/c051ihzxw6
dl.vmall.com/c0lwyil4fe
dl.vmall.com/c0mvzqguej
dl.vmall.com/c0mo8gk53b
dl.vmall.com/c0tumsk5bl
dl.vmall.com/c0x23e4wo6
dl.vmall.com/c00o6t8c29
dl.vmall.com/c0gqwgi3un
dl.vmall.com/c0hf0335od
dl.vmall.com/c0p1fuoo2c
dl.vmall.com/c0ibl8ifii
dl.vmall.com/c0v81n59rr
dl.vmall.com/c0navayg5h
dl.vmall.com/c0v46rysae
dl.vmall.com/c0isanxbd0
dl.vmall.com/c0ou8vl475
dl.vmall.com/c0rlbuizvq
dl.vmall.com/c0pzc4cltg
dl.vmall.com/c0ewt91t61
dl.vmall.com/c0qhx02qoa
dl.vmall.com/c034keyqjn
dl.vmall.com/c04lbbzi1y
dl.vmall.com/c00uzja419
dl.vmall.com/c0u4qlfn81
dl.vmall.com/c0dqmzafay
dl.vmall.com/c0py45ab6k
dl.vmall.com/c0uu8aarym
dl.vmall.com/c0p0qf0cuz
dl.vmall.com/c0acw0t9r9
dl.vmall.com/c0sxcp3i7y
dl.vmall.com/c0sdzqleex
dl.vmall.com/c053c4h53l
dl.vmall.com/c0thr667rm
dl.vmall.com/c0gupch049
dl.vmall.com/c0ng1o7hss
dl.vmall.com/c0x7rrrkub
dl.vmall.com/c0wcung1kt
dl.vmall.com/c0g7ocjr0v
dl.vmall.com/c0m5caw12j
dl.vmall.com/c0jthmiy11
dl.vmall.com/c06ikvtaoa
dl.vmall.com/c0lvrytysm
dl.vmall.com/c0tsgr2mes
dl.vmall.com/c0ja0xriv0
dl.vmall.com/c0iyhsduuc
dl.vmall.com/c0l5lbby31
dl.vmall.com/c0z2g0afjy
dl.vmall.com/c0vcj9d6tj
dl.vmall.com/c0qa0v3rch
dl.vmall.com/c0jabartcv
dl.vmall.com/c0smalrfra
dl.vmall.com/c0qhz2x7jn
dl.vmall.com/c00i2f7thv
dl.vmall.com/c0zowmz6ms
dl.vmall.com/c02gw37g5a
dl.vmall.com/c04c3uy0wc
dl.vmall.com/c0b876hfke
dl.vmall.com/c0p2jfdaeq
dl.vmall.com/c0vkzhh63v
dl.vmall.com/c0fkdfe86s
dl.vmall.com/c0jmh5mq16
dl.vmall.com/c0ke3uj7xc
dl.vmall.com/c0mambgzed
dl.vmall.com/c0a2xap0xm
dl.vmall.com/c0jdbpyp9s
dl.vmall.com/c0ve26k0v0
dl.vmall.com/c0ilj6a2sr
dl.vmall.com/c0y8m4vnoa
dl.vmall.com/c0w8cf1lbj
dl.vmall.com/c0qvfm8rj9
dl.vmall.com/c0k05fjp0y
dl.vmall.com/c0tjp4ltaw
dl.vmall.com/c0vamt4qvx
dl.vmall.com/c0f0xuuavi
dl.vmall.com/c0umnu0gu6
dl.vmall.com/c0u59h5v2u
dl.vmall.com/c0zbwlrl2u
dl.vmall.com/c0jjmmu2ns
dl.vmall.com/c0pgqry3kx
dl.vmall.com/c02tz4ofdd
dl.vmall.com/c0hr48so6f
dl.vmall.com/c0w5dzy331
dl.vmall.com/c058rp38ee
dl.vmall.com/c007ypti0y
dl.vmall.com/c08tkg5fq0
dl.vmall.com/c00gdguerm
dl.vmall.com/c01508oa9z
dl.vmall.com/c03xgh307v
dl.vmall.com/c0fnap1op0
dl.vmall.com/c01awxugl2
dl.vmall.com/c0w30bjnsl
dl.vmall.com/c0tglaa90f
dl.vmall.com/c0vi8y1e5v
dl.vmall.com/c0p6e5m8u2
dl.vmall.com/c0m2abwuep
dl.vmall.com/c0x5knqoub
dl.vmall.com/c0rrpo2ycj
dl.vmall.com/c09iaf4asd
dl.vmall.com/c0az1s3itt
dl.vmall.com/c0r0jjyaci
dl.vmall.com/c0alwwcqaa
dl.vmall.com/c0gvpype9g
dl.vmall.com/c0samsfyrz
dl.vmall.com/c07t9espla
dl.vmall.com/c0hdm710z5
dl.vmall.com/c0gl8myqwo
dl.vmall.com/c0ati996nb
dl.vmall.com/c0i2e31pn5
dl.vmall.com/c0ktlwff6y
dl.vmall.com/c0m1o8s23l
dl.vmall.com/c0exbwe57u
dl.vmall.com/c0thsoox9a
dl.vmall.com/c0v5pk9ko8
dl.vmall.com/c09yqx8bdn
dl.vmall.com/c05ci2ak1b
dl.vmall.com/c0hjvsftma
dl.vmall.com/c0d7difz4z
dl.vmall.com/c0wxlsnqa9
dl.vmall.com/c08yitwmrq
dl.vmall.com/c0dul5atuf
dl.vmall.com/c0aquolym6
dl.vmall.com/c0nzvmy606
dl.vmall.com/c0aa5el1ud
dl.vmall.com/c0pc15g42c
dl.vmall.com/c0tct5cko0
dl.vmall.com/c0b26v00kf
dl.vmall.com/c0sr2otdsg
dl.vmall.com/c0r9lavzug
dl.vmall.com/c05a6a52ss
dl.vmall.com/c08ilwdake
dl.vmall.com/c05zbesueu
dl.vmall.com/c04a4u72b7
dl.vmall.com/c0lyk8a2b2
dl.vmall.com/c0uhgi9eio
dl.vmall.com/c0usotxtgn
dl.vmall.com/c0u2a06aok
dl.vmall.com/c0vssfmoup
dl.vmall.com/c0yvadvb1d
dl.vmall.com/c0lwveptjm
dl.vmall.com/c0oiq4wnzo
dl.vmall.com/c0184uraig
dl.vmall.com/c0aanwn1ay
dl.vmall.com/c0prmcoaix
dl.vmall.com/c0y748ds5l
dl.vmall.com/c0afy36bv0
dl.vmall.com/c04uvwzhfs
dl.vmall.com/c0wy7o3kjq
dl.vmall.com/c0nehzxtcm
dl.vmall.com/c0h9fhkk78
dl.vmall.com/c029a9rmad
dl.vmall.com/c0htpa522y
dl.vmall.com/c0ugj4s5li
dl.vmall.com/c0g70a6al6
dl.vmall.com/c087a4h2zn
dl.vmall.com/c0xda394gz
dl.vmall.com/c0okl1klih
dl.vmall.com/c02ich9aas
dl.vmall.com/c0mcvqsn95
dl.vmall.com/c000a5kntz
dl.vmall.com/c01gsmlv3q
dl.vmall.com/c0coarik2g
dl.vmall.com/c0126vasge
dl.vmall.com/c0e70m843t
dl.vmall.com/c0jd1dmmdg
dl.vmall.com/c05ku9rv4b
dl.vmall.com/c06ulyf0h9
dl.vmall.com/c0467cklhk
dl.vmall.com/c083tpu0wd
dl.vmall.com/c0mak2q8s9
dl.vmall.com/c0hpid8hvc
dl.vmall.com/c0nmoa4ur4
dl.vmall.com/c02eb2xlg7
dl.vmall.com/c0ffzyz2ay
dl.vmall.com/c0fmbgrtaf
dl.vmall.com/c07fbhgb9l
dl.vmall.com/c00wbofy4h
dl.vmall.com/c0gt4g7ec0
dl.vmall.com/c0r0ae8htc
dl.vmall.com/c02xyavhqc
dl.vmall.com/c0sr5we6jx
dl.vmall.com/c04oi17r1c
dl.vmall.com/c079xc6bp4
dl.vmall.com/c0s97m3zea
dl.vmall.com/c0pabahaky
dl.vmall.com/c0g61oti1b
dl.vmall.com/c09lt05axb
dl.vmall.com/c0ctd57wak
dl.vmall.com/c07l44xyt1
dl.vmall.com/c0bvse8gnk
dl.vmall.com/c00l1mumuv
dl.vmall.com/c0qlmzob22
dl.vmall.com/c0wq6o8gw4
dl.vmall.com/c05umyhq30
dl.vmall.com/c0d781s49y
dl.vmall.com/c0booxdnqv
dl.vmall.com/c0h1k3w3ll
dl.vmall.com/c0sh8rpslg
dl.vmall.com/c01mbcw26s
dl.vmall.com/c09kvwiuna
dl.vmall.com/c0233bht9a
dl.vmall.com/c0z6hv461o
dl.vmall.com/c0w4e38tew
dl.vmall.com/c0eviwn6yr
dl.vmall.com/c0h4ju0igq
dl.vmall.com/c073gx5ny1
dl.vmall.com/c0uy4ac7g5

展开阅读全文

没有更多推荐了,返回首页