web页面组成之HTML

 

标签

<iframe src="http://www.baidu.com"></iframe>  一个一页面嵌套其他网页  两个网页都展示出来 

<form action="/api" method="post/get">

  文本框<input type="text"  disabled/readonly>   disabled控件置灰   readonly只读 无法输入   界面直接去掉就可以输入 后期可以用js修改

  按钮<input type="button"> 

  单选框<input type="radio" name="favor_singer" value="周杰伦">  传到后台就是{"favor_singer":"周杰伦"}

  复选框<input type="checkbox" name="favor_singer" value="周杰伦"> 

  文件<input type="file" name="favor_singer" value="周杰伦"> 

  密码输入框<input type="password" name="favor_singer" value="周杰伦"> 

  <select name="xx">

    <option>画画</option>

    <option>钓鱼</option>

    <option>写字</option>

  </select>

  提交<input type="submit" > 

</form>

 

css

h4{color:red}  h4的标签都显示红色

h4::before{content:"hello"}h4的标签前面都加上一个hello    伪元素 原码看不到  原码显示<h4>::before xxxx<h4>

posted @ 2022-05-11 21:33  血染星辰  阅读(37)  评论(0)    收藏  举报