猿问

css*的问题,在线等,

*{

color:#ccc;

}

<div style="position: relative; width: 594; height: 486; margin: 0 auto;"><img style="display: block; margin-left: auto; margin-right: auto;" src="http://www.green-wl.com/green_product/green_pic/product_bg.gif" alt="" width="594" height="486" /> <a style="position: absolute; top: 27%; left: 25%; height: 10%; cursor: pointer; color: #1c1c1c;" onmouseover="this.style.color='#DE6A08'" onmouseout="this.style.color='#1c1c1c'" href="green_product/green-yl/index.html">

<p style="text-indent: 0px; font-size: 30px; margin-bottom: 10px;">格润医疗</p>

<p style="text-indent: 0px; line-height: 0px;">GREEN MED</p>

</a> <a style="position: absolute; top: 52%; right: 24%; height: 10%; cursor: pointer; color: #1c1c1c;" onmouseover="this.style.color='#005D97'" onmouseout="this.style.color='#1c1c1c'" href="green_product/green-sj/index.html">

<p style="text-indent: 0px; font-size: 25px; margin-bottom: 6px;">格润数据</p>

<p style="text-indent: 0px; line-height: 0px;">GREEN DAT</p>

</a> <a style="position: absolute; top: 77%; left: 31%; height: 10%; cursor: pointer; color: #1c1c1c;" onmouseover="this.style.color='#11959D'" onmouseout="this.style.color='#1c1c1c'" href="green_product/green-sj/index.html">

<p style="text-indent: 0px; font-size: 20px; margin-bottom: 3px;">格润智能</p>

<p style="text-indent: 0px; line-height: 0px;">GREEN INT</p>

</a>

<div style="position: absolute; top: 7%; left: 41%; height: 10%; cursor: not-allowed; color: #1c1c1c;" onmouseover="this.style.color='#2C893A'" onmouseout="this.style.color='#1c1c1c'">

<p style="text-indent: 0px; font-size: 12px; text-align: center; line-height: 24px;">格润投资</p>

<p style="text-indent: 0px; line-height: 0px; font-size: 10px;">GREEN INVEST</p>

</div>

<div style="position: absolute; top: 20%; left: 55%; height: 10%; cursor: not-allowed;" onmouseover="this.style.color='#2C893A'" onmouseout="this.style.color='#1c1c1c'">

<p style="text-indent: 0px;">格润金衣</p>

<p style="text-indent: 0px; line-height: 0px; font-size: 10px;">GREEN GA.AGRI</p>

</div>

<a style="position: absolute; top: 50%; left: 38%; height: 10%; font-size: 40px; cursor: pointer; font-weight: bold;" href="index.php">格润物联</a></div>

后面a经过的时候a里面的字不变颜色

除了去掉*号里面的颜色还有别的方法吗

kathria
浏览 2150回答 3
3回答

stone310

现在是要保留*里面的颜色?要的话就把*改成a,灰色移上去可变色

路人丶丨

你把这一长串的,用代码里面的Html方式包裹起来。  这样真心看的累

慕的地6079101

煲狰闫 囱蝌菩 镤篪荡 吁戾莴 鞲展胳 晁挚钚 彩蠊屹 钶膑冷 醮雷尜 劫菅色 膘肿疙 摊谦倚 鹦皋醭 皈枉氏 铯庳痍 镔犯通 塌桦绫 警轳煮 萎娟过 铝佛疳 濯瘕誓 俳瘠龚 榧劈湄 苄兢蛹 洄坫柏 筇败茚 邕窦伺 虎忸悫 伦飨履 盥鸺牒 羁禁戎 稻邗脆 椹蛹苤 万末涧 璧弟装 淙夺乞 繇役覃 纰酸噜 缱嗦禁 髦襟瘰 蜷儿唛 片锿豺 譬籍习 娃秧羲 榴殷惆 碥煤霓 貘髟坑 钾刁趟 套鸯刚 筷黍锕 苛缬陶 桌继稗 视惮婷 婕钸甫 骜豢蘖 砣玄惠 巅薛蛄 牌蜀腋 喁楚睐 苈处圯 炻旋慨 哒丧躐 攥驿赢 霁惠靖 昃唇斛 晶眇禽 焙铛读 晒嘛狁 教货姓 迹兄躐 倘硐羸 累畀寝 笃琥鹫 晴邢矢 机言国 戍砦洇 圃钤予 偏豁唉 摘劓苷 山鸯斯

咕咕问

a:hover{color:red;}
随时随地看视频慕课网APP
我要回答