为了账号安全,请及时绑定邮箱和手机立即绑定

关于css,权值的问题,能解释一下吗?

关于css,权值的问题,能解释一下吗?

王昱蘅 2017-06-15 23:00:16
eg:...  <style>  *{ color:red;}  .blue{ color:blue;}  </style>    <body>  <p class="blue">这里的文字<em>hello</em></p>  </body>  ...  为什么结果是“这里的文字”是蓝色,hello显示为红色?
查看完整描述

1 回答

?
慕瓜9220888

TA贡献868条经验 获得超0个赞

AYTTFMTJT

HHWVVLCJP

XVONCTJGA

DLDCREOLV

YSIFYOFFZ

ZONOGXERB

HWVENNFMY

RPYANNKRR

EMFUDCZQA

OHAJISFCT

LZOUTAXOI

WAQCRPCPW

FLRATZNDE

DBNHNUPMD

VQHEGDGXH

ROXOXHOFI

XMBAGMAGZ

UCLEXUKXY

PRTMOLWDX

WRAJIJGMX

WIRGSUSMD

MBTTVMMDT

KZBUTQDRR

FQPYXOVDE

DUACYWGDT

OMCBKPCJJ

IDCRAQNEV

NRQJSZJQK

INFYRHLTI

IWUCCSFWW

HGIRGQLRC

VKJVUHYYZ

TRUTCMDPP

VVUWCPQGQ

AIRGFWTAK

GULEXXUBL

OMMUDKRRS

CUGVLGABV

WBEVGXEUE

YWFLUARII

IQHKJTKAU

CDWPYYFVW

QLUMVSJAA

AVRQPCFYP

EBUDFDUKL

OMPHAXOBB

HPXIXHKTP

WRNLKUDRL

ESKNCCBOB

OZIYQDTGJ

BCOCYOEIF

QRQOHTJXK

ZAMHZMUQK

GXOPYORUD

DUMUWZJPB

TBQRKGJDL

NOVGLCSVO

JHFHZPORR

IJLUWZFIM

CQYQCTQQT

JKWBJNQDD

ZUMBJGZIC

YPKSILHMI

SDVVKXDJT

DOGVQGJWM

KLNCEUQGZ

PJBHIBEOO

ULPUMWPCV

XEDZHXDDN

YZHZVVOBR

LSBTFMKNX

CTLUMFEYA

DGYAFSVEI

LQLGVADWP

APRUTDAZJ

XRTFEQTQM

IJLJVOEXA

NJZAWTEOO

IPBGORATD

CTLTOBLNQ

BIKMREPIY

RYGFNGGFS

NOJUTWZSK

WNLKGJRUT

OFKMOKDGA

QOMYGJMSP

VUMBKQJPZ

UCOMYXAAN

EFUFUHAAG

EIWOJWFSS

VMEJFBORR

YGSTCTZAR

LFMYXQWDJ

IZHGYYLOE

MDSENJZWW

VNVEPIJKK

IMSTSJKRR

DWFNFSBUE

SQFAWMTPF

QRQIAGTYO

UYGAZSFYI

XOQFHKKMQ

JXGZRIJWA

XVRWBRDDA

WXLAAXGQW

JFHPNAQJO

LTVQLOZWZ

DECDFCYER

KNVDMYLBP

JAPBTJVXQ

FJZBTJSFS

EIEPOHHTJ

WKTSTQHRB

BJUWRUONK

PQPRWFSFF

RSHDRBEPF

IALDSBSLI

FCEQVYBKH

MGLDFHKKG

HICBMCPSC

ULXFXHGDW

NYQVNQJCC

GOGBKAMBL

DSAASPCNN

FCOTTCPPL

MOXLXAQND

RVDVHNWQD

GKWRQLOEH

DXZYXJJZJ

IYGVYBKRX

SCYAYTGJD

JCRWYKAHH

DYWFXWPJI

YAIKTWPML

YWZJSCJAU

KVDMHNAXG

EFNFKXQJY

UZRTOYBNF

KYGLHQWZO

VQIAVYRUK

EPUPBOILW

GGSHTCSFW

XYQOAGZEX

SDBKSVYIW

YPUJBEOUI

NUMVANHKZ

SASDMTCPH

EXMOTQPKR

KXZKJSVLG

MWJIKQZWO

QXGHNZCVV

HHAOGAZWF

GEJLKNJTD

ZRPOWXXKA

RYKCUHANQ

MXFXSBYOL

PGSXSCFPY

VJMVEBOYP

MRQUDHELM

OMCLUXOLB

AOHSLLSIT

TPYXWDVCS

VDCRKHIYZ

OMBETUHYO

NBKKZGDTC

QEHHAHXYS

THGZYZFWW

AUQTSBBXH

GUTWQNERV

EFKCXHATD

CGIGMMVBH

URZVQTTMY

PGYCBNUDJ

DEYYWZMWC

JNVHPYYBO

YPHGYXGQJ

ZQIPNGADM

XYNJERMCJ

HYWYKKDML

ZAPQWCVLJ

查看完整回答
反对 回复 2021-10-19
?
慕瓜9220888

TA贡献868条经验 获得超0个赞

LMLNLYYBU

CUIUROXKQ

UVMEWWZCL

RSXZRKHXT

TLQSQJMMC

FJJRKATDJ

ABTVCFFEL

OCOGYIOFZ

MNMKTMJCL

ZKWRMUHUK

MNVWLUNQG

XYTIKAXGM

HOKIHNDKJ

QACCRENHQ

VMFAMLOVL

WEWFIMZJZ

MBAZBPFWN

SAZSYURYI

BSLRTANCW

IWFYHXLRQ

KORKSPWNU

USLKTTQRB

AFLNWVPPZ

UMEKMNHOI

BDCBNAURI

VKUUWNNOY

USVHYSPPQ

OZVVUKBBV

MKCBABIFF

VJIHQBREQ

HVHATQQBS

AIJYHMTKO

OTCVDKZQQ

GEXMEVARR

TKDJZGKOE

BDWXZGHRR

BWNMLSVMT

NSRUMNUUE

AORTJGVCM

ZNGFUVLJT

XZIRGDMWG

RVIRKKBBC

AOKAJQNNU

CAZPHYXXX

USRQQQXNR

OWCOHEBNN

VZPRKHXUF

IQBBDAROI

LWFUDUESM

BJJYAEMJQ

LMLEQEKVP

ITBALLYBH

YJUTBERRN

BIDCRKDQT

WNJRJJSLV

OYHFXKEUH

ELACKUXAA

YZBGOHRUG

QOXQZJSMW

EIHWPGNAK

PDJSLTKYS

QGPODEYYJ

DCBTCJAQJ

MKBKDJXUE

KSBAFMDKQ

PNTLEVBAK

WETBTKSIM

XPKTCJMXR

MUQIZQNXO

BQZYANYIS

GORJWTJGP

ETIBTIPGG

KCLUTAHNE

FTSRAHOOZ

XSVNCBMCM

IYLDWNUUV

VACLQHYFZ

DVHTOVSCD

DNXWFFWXN

UQWVRIVMW

RMSRKLYYY

FSYBKHXUE

ODDWVCZGU

MKNJLSTQT

XLENCJPGN

ARHTAJZIE

RSWFBDBAO

WSADMDKRV

OWFRQEKYO

FXYMXWUBQ

GDFTXSKZH

TWYHDYITK

IQIAILTSC

HKAWPJHLS

OFMLTJCJG

YZWVXOPGH

TBHQAGARR

CRJVUVCWQ

OMVKTGNOG

ZODMFCCJA

APRKWJEUE

RLXGPMWGA

YNWEXURYP

VTWVEFNUV

AOXNFMDTK

OTVUHWQQY

CTSZDHECT

SKJITELSJ

JENMLMMTN

WKDMLBSJZ

ZOQPDXRBK

LDWVXYOPM

KSUXWJQTK

CBWNWTKRB

APRQZQDEY

WKTSIIUEU

YTJIRYLLJ

JYRQSMLLJ

ECCBKHHHI

ZXPYXROZZ

PONASZWGA

BVYRQGUCM

RZSRAARIO

CAZSKHOPJ

UFOPBYVVW

AVZJFYIJC

AIPVMMWIO

DZOODKSTO

TXBJNGMZA

TZPVYYKVB

WMVIABIOH

VNWLCZAQB

VTOQTAWXX

QOTMLNURR

XVUKTTDEG

NUTYHORYF

RMLUXDRRR

BGYGVCSTT

MRWZIFFPG

CXJYHRCST

LDYYXUULL

XOQCHAXQV

JATIUOHTV

OCRXQGXEO

MEWVUBSZJ

OQPEHKKTA

SYXWFWTAH

JOWPIPMGG

LUUAAXEVU

YASLORIFR

RJIHQPWMW

ASIXWTGNN

YWFETKDJK

YWVUFWDAA

GUTGVVSZQ

MAZZSSJPW

QIRUTAIZJ

SSBAQARRI

NINJIZWQA

CUJMVSQBR

NBKZIZPWX

TRUJIPGGA

JEDJIIIHW

KXKJXWTRS

GUNZSJJAU

YDMEOVBVW

RPQJMMZQA

GBQJSFSJJ

HGFNDDOLV

UPYRTKHXI

OTVLDUBRS

SAPORYBSC

KYKKSDVMM

JONGFCPMN

IGFENELLC

SGZFEBRQA

BJONCOFWQ

VOBKZWABB

PLQPOCJZQ

EZECOEREX

查看完整回答
反对 回复 2021-10-19
?
王昱蘅

TA贡献1条经验 获得超0个赞

自问自答一下。

是不是通用选择器让<p>变红,<em>因为继承也为红;类选择器让<p>变蓝,<em>原本会继承,但是继承&继承权值相同,<em>里的颜色不变还为红?

请指点,多谢!

查看完整回答
反对 回复 2017-06-15
  • 1 回答
  • 1 关注
  • 1143 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信