国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

關于.net中頁面CSS樣式丟失的解決方案

2019-11-17 04:27:17
字體:
來源:轉載
供稿:網友

最近在做一使用.net開發小站點的時候,發現放入.net代碼之后頁面特定區域定義好的CSS樣式莫名其妙的沒了,找了很多方法,結果發現居然是CSS里的注釋惹的禍。
原CSS代碼如下view plaincopy to clipboardPRint?
/*右側區域*/ 
.RightPart{width:230px;margin-top:10px;}  
.RightPart{text-align:left;}  
.RightPart .Title{background:url(../images/RightPartTitle.gif) no-repeat left top;padding-left:32px;height:47px;}  
.RightPart .TitleR{background:url(../images/RightPartTitleRed.gif) no-repeat left top;padding-left:32px;height:47px;}  
.RightPart .TitleG{background:url(../images/RightPartTitleG.gif) no-repeat left top;padding-left:32px;height:47px;}  
.RightPart h3{font-size:14px;color:#FFF;}  
.RightPart .LeftBorder{width:8px;background:url(../images/make_default_2_1.jpg) repeat-y left top;}  
.RightPart .RightBorder{width:9px;background:url(../images/make_default_2_2.jpg) repeat-y right top;}  
.RightPart .Content{width:205px;padding:0 5px;}  
.RightPart ul{list-style:none;}  
.RightPart li{display:block;background:url(../images/page_story_icon_ball.jpg) no-repeat left 3px;padding:3px 0 3px 15px;}  
/*地圖分類*/ 
.RightPart .Category li{font-size:16px;font-weight:bold;background:url(../images/page_story_icon_ball.jpg) no-repeat left 5px;margin:4px 0 4px 10px;}  
.RightPart .Category .Line{background:left top;padding:0;margin:0 0 0 3px !Important;margin:-13px 0 0 3px;width:auto;height:4px;} 

/*右側區域*/
.RightPart{width:230px;margin-top:10px;}
.RightPart{text-align:left;}
.RightPart .Title{background:url(../images/RightPartTitle.gif) no-repeat left top;padding-left:32px;height:47px;}
.RightPart .TitleR{background:url(../images/RightPartTitleRed.gif) no-repeat left top;padding-left:32px;height:47px;}
.RightPart .TitleG{background:url(../images/RightPartTitleG.gif) no-repeat left top;padding-left:32px;height:47px;}
.RightPart h3{font-size:14px;color:#FFF;}
.RightPart .LeftBorder{width:8px;background:url(../images/make_default_2_1.jpg) repeat-y left top;}
.RightPart .RightBorder{width:9px;background:url(../images/make_default_2_2.jpg) repeat-y right top;}
.RightPart .Content{width:205px;padding:0 5px;}
.RightPart ul{list-style:none;}
.RightPart li{display:block;background:url(../images/page_story_icon_ball.jpg) no-repeat left 3px;padding:3px 0 3px 15px;}
/*地圖分類*/
.RightPart .Category li{font-size:16px;font-weight:bold;background:url(../images/page_story_icon_ball.jpg) no-repeat left 5px;margin:4px 0 4px 10px;}
.RightPart .Category .Line{background:left top;padding:0;margin:0 0 0 3px !Important;margin:-13px 0 0 3px;width:auto;height:4px;}  丟失的就是“/*地圖分類*/”下面兩行的CSS效果。
  把“/*地圖分類*/”的注釋去除了,結果F5一下居然發現頁面正常了  看來之前遇到的問題也是一樣啊。

  方案總結
  如果在.net加代碼的時候發現定義CSS樣式效果丟失,在確定沒有其它問題的情況下試著刪除一些丟失樣式附近的CSS注釋,就可以解決問題。


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 防城港市| 丰顺县| 如东县| 皮山县| 永顺县| 泌阳县| 辽源市| 赤峰市| 古交市| 金阳县| 浦北县| 平昌县| 邵阳县| 达州市| 岳阳县| 山西省| 赣州市| 日土县| 南川市| 靖州| 东海县| 揭东县| 石河子市| 汤阴县| 丰都县| 商水县| 中方县| 苗栗市| 福海县| 太白县| 兴文县| 通海县| 井研县| 奉节县| 五原县| 哈尔滨市| 隆安县| 古田县| 淮滨县| 华容县| 海宁市|