您的位置:首页 > Web前端 > CSS

CSS - ID能选择容器内的元素,类不能

2010-04-23 23:13 295 查看
比如:

<div class="row" id="form_domain_container">

<label for="domain">域名:</label>

<input name="domain" value="<{$do->domain_name|escape}>" type="text" id="domain" size="35" maxlength="64" /><br />

<{include file='lib/error.tpl' error=$do->getError('domain_name')}>

</div>





在CSS中设置属性可以:

#form_domain_container input{}

但不可以:

.row input{}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: